Provides methods for manipulating dates.
public static class DateTimeUtility
name | description |
---|---|
const Iso8601Format | The ISO 8601 format string. |
const TicksPerSecond | The number of DateTime ticks in one second. |
static AreSameSecond(…) | Returns true if the two date times are equal when rounded down to the second. (2 methods) |
static FromUnixTimestamp(…) | Returns the converted UnixTimestamp in a DateTime. |
static ParseIso8601(…) | Converts the specified ISO 8601 representation of a date and time to its DateTime equivalent. |
static SpecifyUtc(…) | Specifies DateTimeKind.Utc. (2 methods) |
static ToIso8601(…) | Formats the date in the standard ISO 8601 format. |
static ToUnixTimestamp(…) | Returns the converted DateTime, in seconds since Unix epoch. |
static TryParseIso8601(…) | Converts the specified ISO 8601 representation of a date and time to its DateTime equivalent. (2 methods) |