public static class DateTimeUtil
| Visibility | Description |
|---|---|
| Public | ToSafeUniversalTime(this DateTime date) (Extension) Safely get the UTC System.DateTime for a given input. |
| Public | WithoutMilliseconds(this DateTime date) (Extension) Remove the millisecond component from a date. |
| Public | ToEpoch(this DateTime date) (Extension) Get the utc-based unix epoch time. |
| Public | FromEpoch(uint secondsSinceEpoch) Get a DateTime instance from utc-based unix epoch time. |
| Public | ParseInvariant(string value) Parse a date using CultureInfo.InvariantCulture. |
| Public | ParseExactInvariant(string value, string format) Parse a date using CultureInfo.InvariantCulture and an exact date format. |
| Public | TryParseInvariant(string value, out DateTime date) Try to parse a date using CultureInfo.InvariantCulture. |
| Public | TryParseExactInvariant(string value, string format, out DateTime date) Try to parse a date using CultureInfo.InvariantCulture. |
| Public | ToString() (Inherited from Object) |
| Public | Equals(object obj) (Inherited from Object) |
| Public | GetHashCode() (Inherited from Object) |
| Public | GetType() (Inherited from Object) |
| Protected | MemberwiseClone() (Inherited from Object) |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by