2003-10-25 19:38:18 +02:00
|
|
|
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)
|
2004-01-22 18:51:05 +01:00
|
|
|
item(tt(strftime) [ tt(-s) var(scalar) ] var(format) var(epochtime) )(
|
2003-10-25 19:38:18 +02:00
|
|
|
Output the date denoted by var(epochtime) in the var(format)
|
|
|
|
specified.
|
2004-01-22 18:51:05 +01:00
|
|
|
|
|
|
|
If tt(-s) var(scalar) is given, assign the date to var(scalar) instead
|
|
|
|
of printing it.
|
2003-10-25 19:38:18 +02:00
|
|
|
)
|
|
|
|
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()
|