Click or drag to resize

DateTimeExtensions Class

Defines extension functions related to Date/Time manipulation.
Inheritance Hierarchy
SystemObject
  GSFDateTimeExtensions

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static class DateTimeExtensions
View Source

The DateTimeExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodAbbreviatedMonthNameGets the abbreviated month name for month of the timestamp.
Public Extension MethodAbbreviatedWeekdayNameGets the abbreviated weekday name for weekday of the timestamp.
Public Extension MethodBaselinedTimestampCreates a baselined timestamp which begins at the specified time interval.
Public Extension MethodDistanceBeyondSecondGets the distance, in Ticks, beyond the top of the timestamp second.
Public Extension MethodLocalTimeIsValidDetermines if the specified local time is valid, by comparing it to the system clock.
Public Extension MethodLocalTimeTo(DateTime, String)Converts given local time to time in specified time zone.
Public Extension MethodLocalTimeTo(DateTime, TimeZoneInfo)Converts given local time to time in specified time zone.
Public Extension MethodLocalTimeToCentralTimeConverts given local time to Central time.
Public Extension MethodLocalTimeToEasternTimeConverts given local time to Eastern time.
Public Extension MethodLocalTimeToMountainTimeConverts given local time to Mountain time.
Public Extension MethodLocalTimeToPacificTimeConverts given local time to Pacific time.
Public Extension MethodLocalTimeToUniversalTimeConverts given local time to Universally Coordinated Time (a.k.a., Greenwich Meridian Time).
Public Extension MethodMonthNameGets the full month name for month of the timestamp.
Public Extension MethodShortWeekdayNameGets the shortest weekday name for weekday of the timestamp.
Public Extension MethodTimeIsValidDetermines if time is valid, by comparing it to the specified current time.
Public Extension MethodTimeZoneToTimeZone(DateTime, String, String)Converts given timestamp from one time zone to another using standard names for time zones.
Public Extension MethodTimeZoneToTimeZone(DateTime, TimeZoneInfo, TimeZoneInfo)Converts given timestamp from one time zone to another.
Public Extension MethodUniversalTimeTo(DateTime, String) Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
Public Extension MethodUniversalTimeTo(DateTime, TimeZoneInfo) Converts the specified Universally Coordinated Time timestamp to timestamp in specified time zone.
Public Extension MethodUniversalTimeToCentralTime Converts the specified Universally Coordinated Time timestamp to Central time timestamp.
Public Extension MethodUniversalTimeToEasternTime Converts the specified Universally Coordinated Time timestamp to Eastern time timestamp.
Public Extension MethodUniversalTimeToMountainTime Converts the specified Universally Coordinated Time timestamp to Mountain time timestamp.
Public Extension MethodUniversalTimeToPacificTime Converts the specified Universally Coordinated Time timestamp to Pacific time timestamp.
Public Extension MethodUtcTimeIsValidDetermines if the specified UTC time is valid, by comparing it to the system clock.
Public Extension MethodWeekdayNameGets the full weekday name for weekday of the timestamp.
Top
See Also

Reference

GSF Namespace