DateUtility
Utilities for handling dates.
Operations
Format
Formats date into a string
function : Format(date:System.Time.Date, format:String) ~ String
Parameters
Name | Type | Description |
---|---|---|
date | System.Time.Date | date |
format | String | date string format options:
|
Return
Type | Description |
---|---|
String | Date instance |
GetNetworkTime
Get the network time
function : GetNetworkTime() ~ Collection.Tuple.Triplet<IntRef,Date,Date>
Return
Type | Description |
---|---|
CollectionTupleTriplet<IntRef,Date,Date> | triplet with: unix time, UTC time and local time |
Parse
Parses a date from a String.
function : Parse(date_str:String, format:String, gmt:Bool) ~ Date
Parameters
Name | Type | Description |
---|---|---|
date_str | String | date |
format | String | date string format options:
|
gmt | Bool | true is GMT, false otherwise |
Return
Type | Description |
---|---|
Date | Date instance |