DateTimeExtensions Class

Defines extension functions related to Date/Time manipulation.

Definition

Namespace: Gemstone.DateTimeExtensions
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static class DateTimeExtensions
Inheritance
Object    DateTimeExtensions

Methods

AbbreviatedMonthNameGets the abbreviated month name for month of the timestamp.
AbbreviatedWeekdayNameGets the abbreviated weekday name for weekday of the timestamp.
BaselinedTimestampCreates a baselined timestamp which begins at the specified time interval.
DistanceBeyondSecondGets the distance, in Ticks, beyond the top of the timestamp second.
LocalTimeIsValidDetermines 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.
LocalTimeToCentralTimeConverts given local time to Central time.
LocalTimeToEasternTimeConverts given local time to Eastern time.
LocalTimeToMountainTimeConverts given local time to Mountain time.
LocalTimeToPacificTimeConverts given local time to Pacific time.
LocalTimeToUniversalTimeConverts given local time to Universally Coordinated Time (a.k.a., Greenwich Meridian Time).
MonthNameGets the full month name for month of the timestamp.
ShortWeekdayNameGets the shortest weekday name for weekday of the timestamp.
TimeIsValidDetermines 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.
UtcTimeIsValidDetermines if the specified UTC time is valid, by comparing it to the system clock.
WeekdayNameGets the full weekday name for weekday of the timestamp.

See Also