about summary refs log tree commit diff
path: root/Doc/Zsh/mod_datetime.yo
blob: b006baf89a41e9aa8eca3919c312c409b5da35bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
COMMENT(!MOD!zsh/datetime
Some date/time commands and parameters.
!MOD!)
The tt(zsh/datetime) module makes available one builtin command:

startitem()
findex(strftime)
cindex(date string, printing)
item(tt(strftime) [ tt(-s) var(scalar) ] var(format) var(epochtime) )(
Output the date denoted by var(epochtime) in the var(format)
specified.

If tt(-s) var(scalar) is given, assign the date to var(scalar) instead
of printing it.
)
enditem()

The tt(zsh/datetime) module makes available one parameter:

startitem()
vindex(EPOCHSECONDS)
item(tt(EPOCHSECONDS))(
An integer value representing the number of seconds since the
epoch.
)
enditem()