Class WorldTimeConstants
Calendar units shared by world time simulation, derived from clock durations.
public static class WorldTimeConstants
- Inheritance
-
WorldTimeConstants
- Inherited Members
Remarks
The daylight and night split is gameplay structure and lives on WorldTime.
Fields
DaysPerYear
public const int DaysPerYear = 365
Field Value
HoursPerDay
public const int HoursPerDay = 24
Field Value
NanosecondsPerDay
public const long NanosecondsPerDay = 86400000000000
Field Value
SecondsPerDay
public const int SecondsPerDay = 86400
Field Value
SecondsPerEstimatedYear
Length of Java's ChronoUnit.YEARS estimated duration, the mean Gregorian year of 365.2425 days. .NET has no equivalent temporal unit, so the value is spelled out.
public const long SecondsPerEstimatedYear = 31556952