|
DateTimeExtensions Class
|
Defines extension functions related to Date/Time manipulation.
Inheritance Hierarchy
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.191-beta+925724bd48239ba1d4417fe63f8c4977892ab734
Syntaxpublic static class DateTimeExtensions
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type DateTimeExtensions = class end
GSF.DateTimeExtensions = function();
Type.createClass(
'GSF.DateTimeExtensions');
View SourceThe DateTimeExtensions type exposes the following members.
Methods | Name | Description |
---|
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | AbbreviatedMonthName | Gets the abbreviated month name for month of the timestamp. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | AbbreviatedWeekdayName | Gets the abbreviated weekday name for weekday of the timestamp. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | BaselinedTimestamp | Creates a baselined timestamp which begins at the specified time interval. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | DistanceBeyondSecond | Gets the distance, in Ticks, beyond the top of the timestamp second. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeIsValid | Determines if the specified local time is valid, by comparing it to the system clock. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeTo(DateTime, String) | Converts given local time to time in specified time zone. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeTo(DateTime, TimeZoneInfo) | Converts given local time to time in specified time zone. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeToCentralTime | Converts given local time to Central time. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeToEasternTime | Converts given local time to Eastern time. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeToMountainTime | Converts given local time to Mountain time. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeToPacificTime | Converts given local time to Pacific time. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | LocalTimeToUniversalTime | Converts given local time to Universally Coordinated Time (a.k.a., Greenwich Meridian Time). |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | MonthName | Gets the full month name for month of the timestamp. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | ShortWeekdayName | Gets the shortest weekday name for weekday of the timestamp. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | TimeIsValid | Determines if time is valid, by comparing it to the specified current time. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | TimeZoneToTimeZone(DateTime, String, String) | Converts given timestamp from one time zone to another using standard names for time zones. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | TimeZoneToTimeZone(DateTime, TimeZoneInfo, TimeZoneInfo) | Converts given timestamp from one time zone to another. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | UniversalTimeTo(DateTime, String) |
Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
|
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | UniversalTimeTo(DateTime, TimeZoneInfo) |
Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
|
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | UniversalTimeToCentralTime |
Converts the specified Universally Coordinated Time timestamp to Central time timestamp.
|
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | UniversalTimeToEasternTime |
Converts the specified Universally Coordinated Time timestamp to Eastern time timestamp.
|
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | UniversalTimeToMountainTime |
Converts the specified Universally Coordinated Time timestamp to Mountain time timestamp.
|
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | UniversalTimeToPacificTime |
Converts the specified Universally Coordinated Time timestamp to Pacific time timestamp.
|
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | UtcTimeIsValid | Determines if the specified UTC time is valid, by comparing it to the system clock. |
![Public Extension Method Public Extension Method](../icons/pubExtension.gif) | WeekdayName | Gets the full weekday name for weekday of the timestamp. |
Top
See Also