Project

General

Profile

$asctime » History » Revision 21

Revision 20 (Per Amundsen, 11/06/2014 08:44 PM) → Revision 21/22 (Per Amundsen, 08/09/2015 06:02 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. ([[$ctime]]) 
 format - Date format to return. 

 *Example* 

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

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

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

 *Format* 

  |^. Year 
 &nbsp; 
 Month 
 &nbsp; 
 &nbsp; 
 &nbsp; 
 Day 
 &nbsp; 
 &nbsp; 
 &nbsp; 
 Hours 
 &nbsp; 
 &nbsp; 
 &nbsp; 
 Minutes 
 &nbsp; 
 Seconds 
 &nbsp; 
 AM/PM 
 &nbsp; 
 &nbsp; 
 &nbsp; 
 Ordinal 
 Timezone 
  | yy 
 yyyy 
 m 
 mm 
 mmm 
 mmmm 
 d 
 dd 
 ddd 
 dddd 
 h 
 hh 
 H 
 HH 
 n 
 nn 
 s 
 ss 
 t 
 tt 
 T 
 TT 
 oo 
 z 
 zz 
 zzz 
  | 99 
 1999 
 1 
 01 
 Jan 
 January 
 1 
 01 
 Mon 
 Monday 
 5 
 05 
 13 
 13 
 1 
 01 
 1 
 01 
 a/p 
 am/pm 
 A/P 
 AM/PM 
 st/nd/rd/th 
 +0 
 +0000 
 +0000 GMT 
  |