defines.time module

A defines module for retrieving the number of ticks in 1 unit of time.

Extends the Factorio defines table.

Tables

time Returns the number of ticks in a second, minute, hour, day, week, month, or year.

Tables

# time

Returns the number of ticks in a second, minute, hour, day, week, month, or year.

Fields:
  • second : the number of Factorio ticks in a second
  • minute : the number of Factorio ticks in a second
  • hour : the number of Factorio ticks in an hour
  • day : the number of Factorio ticks in an day
  • week : the number of Factorio ticks in a week
  • month : the number of Factorio ticks in a month (30 days)
  • year : the number of Factorio ticks in a year (365 days)
Usage:
local ten_seconds = defines.time.second * 10