SBM ModScript Reference → Programming SBM ModScript → Object Types → TimeZone → TimeZone CreateTimeZone() Global Method
Creates a TimeZone specified by value.
Parameter | Type | Description |
---|---|---|
value |
string |
Specifies the TimeZone using a value like "MST", "America/Denver", "US/Mountain". |
Type | Description |
---|---|
TimeZone |
A TimeZone object based on the text that is provided. |
SBM ModScript version: 11.3.
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
None.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.