The Dates and Times for Unity package offers two structs, SerializableDateTime and SerializableTimeSpan, that can be used in place of the default System.DateTime and System.TimeSpan structs. These structs are serializable, allowing them to be displayed in the inspector, and come with a nice editor window for setting date and time values. The package also includes a TimeExtensions class for calculating metadata like season, part of the day, and period of the day, as well as full support for UNIX time and a wide selection of formatting options. A complete demo scene is also provided to showcase how to implement and use the asset.
All code is extensively and clearly commented, with runtime code over 95% unit tested. The package includes an extensive PDF with documentation, including code samples. It has been tested and verified on Unity 2020.3 and later versions on various platforms, including iOS, Android, Windows, MacOS, and WebGL.





