Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

gmdate format [timestamp = time()]


Alias

None


Description

Identical to the date command except that the time returned is Greenwich Mean Time (GMT).


Parameters

format

The format of the outputted date string (Refer to the date command).

timestamp

Optional Parameter: The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given. In other words, it defaults to the value of time().


Return Value

String: A formatted date string. If a non-numeric value is used for timestamp, FALSE is returned. Use libcox_value_to_string() to extract the processing result.