TimeZoneDateTimeHelper Class
Namespace: PTS.Globalization
Assembly: PTS.Globalization.dll
Syntax
public static class TimeZoneDateTimeHelper
Inheritance
System.Object
TimeZoneDateTimeHelper
Methods
ToRemoteTimeZone(DateTime, TimeZoneCode)
Declaration
public static DateTime ToRemoteTimeZone(this DateTime time, TimeZoneCode timeZoneCode)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | time | |
TimeZoneCode | timeZoneCode |
Returns
Type | Description |
---|---|
System.DateTime |
ToRemoteTimeZone(Nullable<DateTime>, TimeZoneCode)
Declaration
public static DateTime? ToRemoteTimeZone(this DateTime? time, TimeZoneCode timezoneCode)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | time | |
TimeZoneCode | timezoneCode |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> |
ToSystemTimeZone(DateTime, TimeZoneCode)
Declaration
public static DateTime ToSystemTimeZone(this DateTime time, TimeZoneCode timeZoneCode)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | time | |
TimeZoneCode | timeZoneCode |
Returns
Type | Description |
---|---|
System.DateTime |
ToSystemTimeZone(Nullable<DateTime>, TimeZoneCode)
Declaration
public static DateTime? ToSystemTimeZone(this DateTime? time, TimeZoneCode timeZoneCode)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | time | |
TimeZoneCode | timeZoneCode |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()