SBM ModScript Reference → Programming SBM ModScript → Object Types → TimeT → TimeT ToTimePoint() Method
Resolves date into a TimePoint that represents year/month/day/etc. based on the specified TimeZone.
| Parameter | Type | Description |
|---|---|---|
|
tz |
TimeZone |
The time zone used to convert the point in time represented by the TimeT to the TimePoint. |
| Type | Description |
|---|---|
|
TimePoint |
A breakdown of the fields in a date (year, month, day, etc.) See TimePoint. |
SBM ModScript version: 11.4.
var t = TimeT(1545721199ll);
var tp = t.ToTimePoint( CreateTimeZone("MST") );
Ext.WriteStream( "${tp.getDate()}/${tp.getMonth()}/${tp.getFullYear()} " +
"${tp.getHours()}:${tp.getMinutes()}:${tp.getSeconds()}" );
Result:
11/24/2018 23:59:59
None.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.