New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

This interface defines the ITimeZoneModel.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public interface ITimeZoneModel

Properties

Gets or sets the adjustment rules for the time zone.

C#
TimeZoneInfo.AdjustmentRule[] AdjustmentRules { get; set; }

Gets or sets the base UTC offset for the time zone.

C#
TimeSpan BaseUtcOffset { get; set; }

Gets or sets the display name of the time zone.

C#
string DisplayName { get; set; }

Gets or sets the standard name of the time zone.

C#
string StandardName { get; set; }

Gets or sets a value indicating whether the time zone supports daylight saving time.

C#
bool SupportsDayLightSaving { get; set; }

Gets or sets the unique identifier for the time zone.

C#
string TimeZoneId { get; set; }

Methods

Gets the adjustment rule for the specified date.

C#
TimeZoneInfo.AdjustmentRule GetAdjustmentRuleForDate(DateTime date)
Parameters:dateDateTime

The date for which to get the adjustment rule.

Returns:

TimeZoneInfo.AdjustmentRule

The adjustment rule for the date.

Returns the transition delta between two dates.

C#
TimeSpan GetTransitionDelta(DateTime rangeStart, DateTime rangeEnd)
Parameters:rangeStartDateTime

The start date of the range.

rangeEndDateTime

The end date of the range.

Returns:

TimeSpan

The transition delta as a TimeSpan.

Returns the UTC offset for the specified date.

C#
TimeSpan GetUtcOffset(DateTime date)
Parameters:dateDateTime

The date for which to get the UTC offset.

Returns:

TimeSpan

The UTC offset as a TimeSpan.

Determines whether the specified range is a transition frame for daylight saving time.

C#
bool IsTransitionFrame(DateTime start, DateTime end)
Parameters:startDateTime

The start date of the range.

endDateTime

The end date of the range.

Returns:

bool

True if the range is a transition frame; otherwise, false.

Determines whether daylight saving time is in effect for the specified date.

C#
bool IsUsingDayLightSaving(DateTime date)
Parameters:dateDateTime

The date to check.

Returns:

bool

True if daylight saving time is in effect; otherwise, false.