TimeZone CreateTimeZone() Global Method

Creates a TimeZone specified by value.

Function Signature

 TimeZone CreateTimeZone( value )

Parameters

Parameter Type Description

value

string

Specifies the TimeZone using a value like "MST", "America/Denver", "US/Mountain".

Return

Type Description

TimeZone

A TimeZone object based on the text that is provided.

Technical Details

SBM ModScript version: 11.3.

Example

var tz = CreateTimeZone("MST");
var loc = CreateLocale("en_US");
var t = TimeT(1517620926);
Ext.WriteStream( t.FormatDateText("yyyy-MM-dd hh:mm:ss a", tz, loc ) );

Result:

2018-02-02 06:22:06 PM

Notes

None.

Related Topics

TimeZone