mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
27 lines
640 B
Plaintext
27 lines
640 B
Plaintext
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()
|