Calendar.TimeZoneAsString Calendar.TimeZoneAsString Calendar.TimeZoneAsString Calendar.TimeZoneAsString Calendar.TimeZoneAsString Method

Definition

Overloads

TimeZoneAsString() TimeZoneAsString() TimeZoneAsString() TimeZoneAsString() TimeZoneAsString()

Returns the full time zone name applicable at the instant of time that this Calendar object represents.

TimeZoneAsString(Int32) TimeZoneAsString(Int32) TimeZoneAsString(Int32) TimeZoneAsString(Int32) TimeZoneAsString(Int32)

Returns the abbreviated time zone name applicable at the instant of time that this Calendar object represents.

TimeZoneAsString() TimeZoneAsString() TimeZoneAsString() TimeZoneAsString() TimeZoneAsString()

Returns the full time zone name applicable at the instant of time that this Calendar object represents.

public : Platform::String TimeZoneAsString()
winrt::hstring TimeZoneAsString() const;
public string TimeZoneAsString()
Public Function TimeZoneAsString() As string
var string = calendar.timeZoneAsString();

Returns

string string string

The full time zone name. This usually differs depending on whether the time zone is observing Daylight Saving Time or not. It also may differ due to historical changes. (An example is "America/Los_Angeles" for Pacific Time.)

See also

TimeZoneAsString(Int32) TimeZoneAsString(Int32) TimeZoneAsString(Int32) TimeZoneAsString(Int32) TimeZoneAsString(Int32)

Returns the abbreviated time zone name applicable at the instant of time that this Calendar object represents.

public : Platform::String TimeZoneAsString(int idealLength)
winrt::hstring TimeZoneAsString(int32_t idealLength) const;
public string TimeZoneAsString(Int32 idealLength)
Public Function TimeZoneAsString(idealLength As Int32) As string
var string = calendar.timeZoneAsString(idealLength);

Parameters

idealLength
Int32 Int32 Int32

The desired length of the abbreviation to be returned. Use 0 to request the abbreviation in most common use.

Returns

string string string

The time zone abbreviation that is closest in length to idealLength. If there is a tie, the shorter abbreviation is returned. If idealLength is 0, the abbreviation in most common use is returned. (An example is "America/Los_Angeles" for Pacific Time.)

See also