Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

getdate [timestamp = time()]


Alias

None


Description

Returns an associative array containing the data/time information. The following array entries are returned:


Parameters

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

Array: Date/Time information. Use libcox_array_next_elem() or libcox_array_walk() to iterate over the array elements, libcox_array_fetch() or libcox_array_fetch_by_key() to extract array entries by indexes or keys.