β±οΈMeridiem Time
What is Meridiem Time
Meridiem Time is the time method of choice for COZY: Weather. At its core, Meridiem Time transforms your world time to a variety of other structures and data types so that it can be easily refenced by any number of systems.
Meridiem Time is a struct that contains an int field for hours (0-23) and minutes (0-59). These values are parsed and saved as a float value (0-1) which can be manipulated on the backend or reconverted back into Meridiem Time for easy viewing on the frontend.
Using Meridiem Time
Meridiem Time is a completely original structure for time management, but it is incredibly simple to use in a variety of cases.
Get the Current Time
Using the Time Module, you can easily get the current time and reference it in your game. This code block will grab the current time from the Time Module:
Convert from Meridiem Time to Float
Add Six Hours to a Time
Convert to a DateTime struct
Last updated