Project

General

Profile

$asctime » History » Version 16

Per Amundsen, 11/06/2014 08:43 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 12 Per Amundsen
&nbsp;
39
&nbsp;
40
&nbsp;
41 2 Per Amundsen
Hours
42 13 Per Amundsen
&nbsp;
43
&nbsp;
44
&nbsp;
45 2 Per Amundsen
Minutes
46 14 Per Amundsen
&nbsp;
47 2 Per Amundsen
Seconds
48 14 Per Amundsen
&nbsp;
49 2 Per Amundsen
AM/PM
50
Ordinal
51 15 Per Amundsen
&nbsp;
52
&nbsp;
53 2 Per Amundsen
Timezone
54 3 Per Amundsen
 | yy
55
yyyy
56
m
57
mm
58
mmm
59
mmmm
60
d
61
dd
62
ddd
63
dddd
64
h
65
hh
66
H
67
HH
68
n
69
nn
70
s
71
ss
72
t
73
tt
74
T
75
TT
76 15 Per Amundsen
oo
77
z
78
zz
79
zzz
80 2 Per Amundsen
 |