TimeT 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 = TimeT(1545721199ll);
t.TruncateToDateOnly();
Ext.WriteStream( t.FormatDateText( "EEEE, MMMM d, yyyy h:mm:ss a z", 
    CreateUTCTimeZone(), CreateLocale("en_UK") ) );

Result:

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

Notes

None.

Related Topics

TimeT