TimeT ToTimePoint() Method

Resolves date into a TimePoint that represents year/month/day/etc. based on the specified TimeZone.

Function Signature

 TimePoint ToTimePoint( TimeZone tz )

Parameters

Parameter Type Description

tz

TimeZone

The time zone used to convert the point in time represented by the TimeT to the TimePoint.

Return

Type Description

TimePoint

A breakdown of the fields in a date (year, month, day, etc.)

See TimePoint.

Technical Details

SBM ModScript version: 11.4.

Example

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

Notes

None.

Related Topics

TimeT