SBM ModScript Reference → Programming SBM ModScript → Object Types → TimeMillis → TimeMillis 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 = TimeMillis(1545721199999ll); var tp = t.ToTimePoint( CreateTimeZone("MST") ); Ext.WriteStream( "${tp.getDate()}/${tp.getMonth()}/${tp.getFullYear()} " + "${tp.getHours()}:${tp.getMinutes()}:${tp.getSeconds()}:${tp.getMilliseconds()}" );
Result:
11/24/2018 23:59:59:999
None.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.