Class TimeZoneInfo
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public sealed class TimeZoneInfo : IEquatable<TimeZoneInfo>, ISerializable, IDeserializationCallback
Properties
BaseUtcOffset
Declaration
public TimeSpan BaseUtcOffset { get; }
Property Value
System.TimeSpan
|
DaylightName
Declaration
public string DaylightName { get; }
Property Value
System.String
|
DisplayName
Declaration
public string DisplayName { get; }
Property Value
System.String
|
Id
Declaration
public string Id { get; }
Property Value
System.String
|
Local
Declaration
public static TimeZoneInfo Local
{
[SecurityCritical]
get;
}
Property Value
TimeZoneInfo
|
StandardName
Declaration
public string StandardName { get; }
Property Value
System.String
|
SupportsDaylightSavingTime
Declaration
public bool SupportsDaylightSavingTime { get; }
Property Value
System.Boolean
|
Utc
Methods
ClearCachedData()
Declaration
public static void ClearCachedData()
ConvertTime(DateTime, TimeZoneInfo)
Declaration
public static DateTime ConvertTime(DateTime dateTime, TimeZoneInfo destinationTimeZone)
Parameters
System.DateTime
dateTime
|
TimeZoneInfo
destinationTimeZone
|
Returns
System.DateTime
|
ConvertTime(DateTime, TimeZoneInfo, TimeZoneInfo)
Declaration
public static DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
Parameters
System.DateTime
dateTime
|
TimeZoneInfo
sourceTimeZone
|
TimeZoneInfo
destinationTimeZone
|
Returns
System.DateTime
|
ConvertTime(DateTimeOffset, TimeZoneInfo)
Declaration
public static DateTimeOffset ConvertTime(DateTimeOffset dateTimeOffset, TimeZoneInfo destinationTimeZone)
Parameters
System.DateTimeOffset
dateTimeOffset
|
TimeZoneInfo
destinationTimeZone
|
Returns
System.DateTimeOffset
|
ConvertTimeBySystemTimeZoneId(DateTime, String)
Declaration
public static DateTime ConvertTimeBySystemTimeZoneId(DateTime dateTime, string destinationTimeZoneId)
Parameters
System.DateTime
dateTime
|
System.String
destinationTimeZoneId
|
Returns
System.DateTime
|
ConvertTimeBySystemTimeZoneId(DateTime, String, String)
Declaration
public static DateTime ConvertTimeBySystemTimeZoneId(DateTime dateTime, string sourceTimeZoneId, string destinationTimeZoneId)
Parameters
System.DateTime
dateTime
|
System.String
sourceTimeZoneId
|
System.String
destinationTimeZoneId
|
Returns
System.DateTime
|
ConvertTimeBySystemTimeZoneId(DateTimeOffset, String)
Declaration
public static DateTimeOffset ConvertTimeBySystemTimeZoneId(DateTimeOffset dateTimeOffset, string destinationTimeZoneId)
Parameters
System.DateTimeOffset
dateTimeOffset
|
System.String
destinationTimeZoneId
|
Returns
System.DateTimeOffset
|
ConvertTimeFromUtc(DateTime, TimeZoneInfo)
Declaration
public static DateTime ConvertTimeFromUtc(DateTime dateTime, TimeZoneInfo destinationTimeZone)
Parameters
System.DateTime
dateTime
|
TimeZoneInfo
destinationTimeZone
|
Returns
System.DateTime
|
ConvertTimeToUtc(DateTime)
Declaration
public static DateTime ConvertTimeToUtc(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.DateTime
|
ConvertTimeToUtc(DateTime, TimeZoneInfo)
Declaration
public static DateTime ConvertTimeToUtc(DateTime dateTime, TimeZoneInfo sourceTimeZone)
Parameters
System.DateTime
dateTime
|
TimeZoneInfo
sourceTimeZone
|
Returns
System.DateTime
|
CreateCustomTimeZone(String, TimeSpan, String, String)
Declaration
public static TimeZoneInfo CreateCustomTimeZone(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName)
Parameters
System.String
id
|
System.TimeSpan
baseUtcOffset
|
System.String
displayName
|
System.String
standardDisplayName
|
Returns
TimeZoneInfo
|
CreateCustomTimeZone(String, TimeSpan, String, String, String, TimeZoneInfo.AdjustmentRule[])
Declaration
public static TimeZoneInfo CreateCustomTimeZone(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName, string daylightDisplayName, TimeZoneInfo.AdjustmentRule[] adjustmentRules)
Parameters
System.String
id
|
System.TimeSpan
baseUtcOffset
|
System.String
displayName
|
System.String
standardDisplayName
|
System.String
daylightDisplayName
|
TimeZoneInfo.AdjustmentRule[]
adjustmentRules
|
Returns
TimeZoneInfo
|
CreateCustomTimeZone(String, TimeSpan, String, String, String, TimeZoneInfo.AdjustmentRule[], Boolean)
Declaration
public static TimeZoneInfo CreateCustomTimeZone(string id, TimeSpan baseUtcOffset, string displayName, string standardDisplayName, string daylightDisplayName, TimeZoneInfo.AdjustmentRule[] adjustmentRules, bool disableDaylightSavingTime)
Parameters
System.String
id
|
System.TimeSpan
baseUtcOffset
|
System.String
displayName
|
System.String
standardDisplayName
|
System.String
daylightDisplayName
|
TimeZoneInfo.AdjustmentRule[]
adjustmentRules
|
System.Boolean
disableDaylightSavingTime
|
Returns
TimeZoneInfo
|
Equals(TimeZoneInfo)
Declaration
public bool Equals(TimeZoneInfo other)
Parameters
TimeZoneInfo
other
|
Returns
System.Boolean
|
Implements
FindSystemTimeZoneById(String)
Declaration
public static TimeZoneInfo FindSystemTimeZoneById(string id)
Parameters
System.String
id
|
Returns
TimeZoneInfo
|
FromSerializedString(String)
Declaration
public static TimeZoneInfo FromSerializedString(string source)
Parameters
System.String
source
|
Returns
TimeZoneInfo
|
GetAdjustmentRules()
Declaration
public TimeZoneInfo.AdjustmentRule[] GetAdjustmentRules()
Returns
TimeZoneInfo.AdjustmentRule[]
|
GetAmbiguousTimeOffsets(DateTime)
Declaration
public TimeSpan[] GetAmbiguousTimeOffsets(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.TimeSpan[]
|
GetAmbiguousTimeOffsets(DateTimeOffset)
Declaration
public TimeSpan[] GetAmbiguousTimeOffsets(DateTimeOffset dateTimeOffset)
Parameters
System.DateTimeOffset
dateTimeOffset
|
Returns
System.TimeSpan[]
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
GetSystemTimeZones()
Declaration
[SecurityCritical]
public static ReadOnlyCollection<TimeZoneInfo> GetSystemTimeZones()
Returns
System.Collections.ObjectModel.ReadOnlyCollection<TimeZoneInfo>
|
GetUtcOffset(DateTime)
Declaration
public TimeSpan GetUtcOffset(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.TimeSpan
|
GetUtcOffset(DateTimeOffset)
Declaration
public TimeSpan GetUtcOffset(DateTimeOffset dateTimeOffset)
Parameters
System.DateTimeOffset
dateTimeOffset
|
Returns
System.TimeSpan
|
HasSameRules(TimeZoneInfo)
Declaration
public bool HasSameRules(TimeZoneInfo other)
Parameters
TimeZoneInfo
other
|
Returns
System.Boolean
|
IsAmbiguousTime(DateTime)
Declaration
public bool IsAmbiguousTime(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.Boolean
|
IsAmbiguousTime(DateTimeOffset)
Declaration
public bool IsAmbiguousTime(DateTimeOffset dateTimeOffset)
Parameters
System.DateTimeOffset
dateTimeOffset
|
Returns
System.Boolean
|
IsDaylightSavingTime(DateTime)
Declaration
public bool IsDaylightSavingTime(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.Boolean
|
IsDaylightSavingTime(DateTimeOffset)
Declaration
public bool IsDaylightSavingTime(DateTimeOffset dateTimeOffset)
Parameters
System.DateTimeOffset
dateTimeOffset
|
Returns
System.Boolean
|
IsInvalidTime(DateTime)
Declaration
public bool IsInvalidTime(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.Boolean
|
ToSerializedString()
Declaration
public string ToSerializedString()
Returns
System.String
|
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
Explicit Interface Implementations
IDeserializationCallback.OnDeserialization(Object)
Declaration
void IDeserializationCallback.OnDeserialization(object sender)
Parameters
System.Object
sender
|
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
System.Runtime.Serialization.SerializationInfo
info
|
System.Runtime.Serialization.StreamingContext
context
|