Lombiq Helpful Libraries - Orchard Core Libraries - DateTime for Orchard Core

December 14, 2022 ยท View on GitHub

Extensions

  • ILocalClock extensions: Using the ILocalClock extension methods, it is possible to convert UTC dates to local and local dates to UTC by specifying the IANA time zone ID.

  • IClock extensions: You can get the UNIX timestamp of the current time using the GetUnixTimeMilliseconds() extension method.