UnixTimeUtils Class
Namespace | Skybrud.Essentials.Time.UnixTime |
---|---|
Assembly | Skybrud.Essentials.dll |
Visibility | Public |
Keywords | Static |
Inheritance | Object |
Static utility class with various methods for working with Unix time.
public static class UnixTimeUtils { }
Properties
Type | Name | Summary |
---|---|---|
Double | CurrentSeconds |
Returns the amount of seconds since the start of the Unix epoch - that is |
Double | CurrentMilliseconds |
Returns the amount of milliseconds since the start of the Unix epoch - that is |
Methods
FromSeconds(int)
(static)
Returns an instance of DateTimeOffset based on the amount of seconds since the start of the
Unix epoch - that is |
FromSeconds(long)
(static)
Returns an instance of DateTimeOffset based on the amount of seconds since the start of the
Unix epoch - that is |
FromSeconds(double)
(static)
Returns an instance of DateTimeOffset based on the amount of seconds since the start of the
Unix epoch - that is |
FromSeconds(string)
(static)
Returns an instance of DateTimeOffset based on the amount of seconds since the start of the
Unix epoch - that is |
ToSeconds(DateTime)
(static)
Returns the Unix timestamp for the specified |
ToSeconds(DateTimeOffset)
(static)
Returns the Unix timestamp for the specified |