R3m/framework Function reference string.to.time

{string.to.time(String $string, Int $time=time())}

Parse about any English textual datetime description into a Unix timestamp.

The function expects to be given a string containing an English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 UTC), relative to the timestamp given in time, or the current time if time is not supplied.

Returns a timestamp as an int on success, false otherwise.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com