Project

General

Profile

Actions

$asctime » History » Revision 1

Revision 1/22 | Next »
Per Amundsen, 02/18/2014 06:37 AM


Added in 1.9.0

$asctime

Returns current date and time. (Day Month Date XX:XX:XX Year format)

$asctime(N,format)

Returns the time and date in text format associated with the $ctime time value.

Parameters

N - A unix timestamp.
format - Date format to return.

Example

;Returns the default text format for this time value.
//echo -ag $asctime(793947600)

;Returns the current time in hh:nn:ss format.
//echo -ag $asctime(hh:nn:ss)

;Returns the date for this time value.
//echo -ag $asctime(793947600, dd/mm/yy)

Updated by Per Amundsen over 10 years ago · 1 revisions

Also available in: PDF HTML TXT