Provides date and time utility functions.
The following statement may be used to import the date library:
import date;
Name | Description |
---|---|
localtime | Get the system localtime according to provided format string. |
localtime_ns | Get the system localtime with nanoseconds according to provided format string. |
string timeFormatted = "";
call localtime : "%Y-%m-%d %H:%M:%S" -> timeFormatted;
println timeFormatted;
string timeFormatted = "";
call localtime_ns : "%Y-%m-%d %H:%M:%S" -> timeFormatted;
println timeFormatted;