System.Time.timeZone.standardDisplayName Property

Gets the system display name for a time zone during non-Daylight Savings Time (DST).

This property is read-only.

Syntax

propVal = System.Time.timeZone.standardDisplayName()

  

Parameters

  • strDSTName [out]
    Retrieves the system display name.

Remarks

Time zone names are generally modified during DST, depending on locale. For example, Pacific Standard Time (PST) becomes Pacific Daylight Time (PDT) or Western Europe Standard Time (WEST) becomes Western Europe Summer Time (WEST).

Examples

The following example demonstrates how to get system time details based on selected time zone.

var oSelectedTimeZone = System.Time.currentTimeZone;

// Set the time zone details.
var sTimeZoneDetails = function() 
{
    var sDetails = "";
    sDetails += "Bias: " + oSelectedTimeZone.bias + "<hr />";
    sDetails += "Display Name: " + oSelectedTimeZone.displayName + "<hr />";
    sDetails += "DST Bias: " + oSelectedTimeZone.DSTBias + "<hr />";
    sDetails += "DST Date: " + oSelectedTimeZone.DSTDate + "<hr />";
    sDetails += "DST Display Name: " + oSelectedTimeZone.DSTDisplayName + "<hr />";
    sDetails += "Name: " + oSelectedTimeZone.name + "<hr />";
    sDetails += "Standard Bias: " + oSelectedTimeZone.standardBias + "<hr />";
    sDetails += "Standard Date: " + oSelectedTimeZone.standardDate + "<hr />";
    sDetails += "Standard Display Name: " + oSelectedTimeZone.standardDisplayName;
    return sDetails;
}

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
DLL Sidebar.Exe version 1.00 or later

See Also

Reference

System.Time.timeZone

System.Time

timeZones

displayName

DSTBias

DSTDate

DSTDisplayName

name

standardBias

standardDate

currentTimeZone

getLocalTime

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK