Universeorange.com/Docs/

R3m/framework Function reference time

{time(Bool | Int $hour=null, Int $minute=null, Int $second=null, Int $month=null, Int $day=null, Int $year=null)}

Returns the Unix timestamp corresponding to the arguments given.
This timestamp is a long integer containing the number of seconds between the Unix Epoch (January 1, 1970 00:00:00 GMT) and the time specified.

Arguments may be left out in order from right to left; any arguments thus omitted will be set to the current value according to the local date and time.

Example

{time()}                    // Returns an int 1621621029
{time(false)}               // Returns string "0.70662000 1621621175" // msec sec
{time(true)}                // Returns a float 1621621175.7066
{time(0, 0, 0, 0, 0, 0)}    // Returns an int 943916400

Returns a String, Int or float.

Last modified: 2021-06-07

© 2021 universeorange.com