TimeMillis TruncateToDateOnly() Method

Rounds date down to midnight UTC.

Function Signature

 void TruncateToDateOnly()

Parameters

Parameter Type Description

None

Return

Type Description

None

Technical Details

SBM ModScript version: 11.4.

Example

var t = TimeMillis(1545721199999ll);
t.TruncateToDateOnly();
Ext.WriteStream( t.FormatDateText( "EEEE, MMMM d, yyyy h:mm:ss:SSS a z", 
    CreateUTCTimeZone(), CreateLocale("en_UK") ) );

Result:

Tuesday, December 25, 2018 12:00:00:000 AM GMT+00:00

Notes

None.

Related Topics

TimeMillis