Project

General

Profile

$asctime » History » Revision 7

Revision 6 (Per Amundsen, 11/06/2014 08:40 PM) → Revision 7/22 (Per Amundsen, 11/06/2014 08:40 PM)

_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* 

 <pre> 
 ;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) 
 </pre> 

 *Format* 

 |_.N |_.N |_<.N | 
  |=. |_. Year 
 Month 
 Day 
 Hours 
 Minutes 
 Seconds 
 AM/PM 
 Ordinal 
 Timezone 
  | yy 
 yyyy 
 m 
 mm 
 mmm 
 mmmm 
 d 
 dd 
 ddd 
 dddd 
 h 
 hh 
 H 
 HH 
 n 
 nn 
 s 
 ss 
 t 
 tt 
 T 
 TT 
  |