|
DateTimeExtensions Class
|
Defines extension functions related to Date/Time manipulation.
Inheritance Hierarchy
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax public 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 |
---|
| AbbreviatedMonthName | Gets the abbreviated month name for month of the timestamp. |
| AbbreviatedWeekdayName | Gets the abbreviated weekday name for weekday of the timestamp. |
| BaselinedTimestamp | Creates a baselined timestamp which begins at the specified time interval. |
| DistanceBeyondSecond | Gets the distance, in Ticks, beyond the top of the timestamp second. |
| LocalTimeIsValid | Determines if the specified local time is valid, by comparing it to the system clock. |
| LocalTimeTo(DateTime, String) | Converts given local time to time in specified time zone. |
| LocalTimeTo(DateTime, TimeZoneInfo) | Converts given local time to time in specified time zone. |
| LocalTimeToCentralTime | Converts given local time to Central time. |
| LocalTimeToEasternTime | Converts given local time to Eastern time. |
| LocalTimeToMountainTime | Converts given local time to Mountain time. |
| LocalTimeToPacificTime | Converts given local time to Pacific time. |
| LocalTimeToUniversalTime | Converts given local time to Universally Coordinated Time (a.k.a., Greenwich Meridian Time). |
| MonthName | Gets the full month name for month of the timestamp. |
| ShortWeekdayName | Gets the shortest weekday name for weekday of the timestamp. |
| TimeIsValid | Determines if time is valid, by comparing it to the specified current time. |
| TimeZoneToTimeZone(DateTime, String, String) | Converts given timestamp from one time zone to another using standard names for time zones. |
| TimeZoneToTimeZone(DateTime, TimeZoneInfo, TimeZoneInfo) | Converts given timestamp from one time zone to another. |
| UniversalTimeTo(DateTime, String) |
Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
|
| UniversalTimeTo(DateTime, TimeZoneInfo) |
Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
|
| UniversalTimeToCentralTime |
Converts the specified Universally Coordinated Time timestamp to Central time timestamp.
|
| UniversalTimeToEasternTime |
Converts the specified Universally Coordinated Time timestamp to Eastern time timestamp.
|
| UniversalTimeToMountainTime |
Converts the specified Universally Coordinated Time timestamp to Mountain time timestamp.
|
| UniversalTimeToPacificTime |
Converts the specified Universally Coordinated Time timestamp to Pacific time timestamp.
|
| UtcTimeIsValid | Determines if the specified UTC time is valid, by comparing it to the system clock. |
| WeekdayName | Gets the full weekday name for weekday of the timestamp. |
TopSee Also