Project

General

Profile

$asctime » History » Version 11

Per Amundsen, 11/06/2014 08:41 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$asctime*
4
5
Returns current date and time. (Day Month Date XX:XX:XX Year format)
6
7
*$asctime(N,format)*
8
9
Returns the time and date in text format associated with the [[$ctime]] time value.
10
11
*Parameters*
12
13
N - A unix timestamp.
14
format - Date format to return.
15
16
*Example*
17
18
<pre>
19
;Returns the default text format for this time value.
20
//echo -ag $asctime(793947600)
21
22
;Returns the current time in hh:nn:ss format.
23
//echo -ag $asctime(hh:nn:ss)
24
25
;Returns the date for this time value.
26
//echo -ag $asctime(793947600, dd/mm/yy)
27
</pre>
28 2 Per Amundsen
29
*Format*
30
31 8 Per Amundsen
 |^. Year
32 10 Per Amundsen
&nbsp;
33 2 Per Amundsen
Month
34 11 Per Amundsen
&nbsp;
35
&nbsp;
36
&nbsp;
37 2 Per Amundsen
Day
38
Hours
39
Minutes
40
Seconds
41
AM/PM
42
Ordinal
43
Timezone
44 3 Per Amundsen
 | yy
45
yyyy
46
m
47
mm
48
mmm
49
mmmm
50
d
51
dd
52
ddd
53
dddd
54
h
55
hh
56
H
57
HH
58
n
59
nn
60
s
61
ss
62
t
63
tt
64
T
65
TT
66 2 Per Amundsen
 |