SBM ModScript Reference → Programming SBM ModScript → Object Types → TimeZone → TimeZone CreateUTCTimeZone() Global Method
Returns the UTC TimeZone.
Parameter | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
TimeZone |
A TimeZone object based on the UTC time zone. |
SBM ModScript version: 11.3.
var tz = CreateUTCTimeZone(); 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-03 01:22:06 AM
None.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.