MicroController/stdlib/time.lua

20 lines
432 B
Lua
Raw Normal View History

2019-03-05 19:50:21 +08:00
--- Time module
-- @module Time
Time = {}
--- @field the number of factorio ticks in a second
Time.SECOND = 60
--- @field the number of factorio ticks in a minute
Time.MINUTE = Time.SECOND * 60
--- @field the number of factorio ticks in an hour
Time.HOUR = Time.MINUTE * 60
--- @field the number of factorio ticks in a day
Time.DAY = Time.MINUTE * 60
--- @field the number of factorio ticks in a week
Time.WEEK = Time.DAY * 7