2.9.3 Date and Time Functions

Function

Description

Example of usage

Result

date( )

Returns the current date in string type

(YYYY-MM-DD format)

date( )

"2019-04-17"

time( )

Returns the current time in string type

(HH:MM:SS format)

time( )

"08:48:14"

timer( )

Returns the time elapsed in seconds (sec) from when the power was turned on

timer( )

2796.37

Last updated

Was this helpful?