Function usage:
ftime([format
[, time]])
Returns a string formatted from an absolute system time time
(obtained from
time() or
mktime())
according to
format.
If time is omitted, it defaults to the current time.
If time is out of range, ftime() returns an empty string
and prints an error message.
If format is omitted, it defaults to
%time_format.
If format is "@", a raw system time
(e.g., seconds since 1970-01-01 00:00:00 UTC) will be displayed.
Otherwise, each "%" in format describes a conversion:
%@ %. %a %A %b %B %c %d %F %Y-%m-%d")
%H %I %j %m %M %p %s %S %T %H:%M:%S")
%U %w %W %x %X %y %Y %Z %% %"
strftime() documentation for details.
All other characters in format are copied unmodified to the result.
The formats "%@" and "%s.%." do not give the same
results if time is negative.
Example:
command: /expr
ftime("Today is %a %b %d",
time())
output: Today is Thu Jul 02
See: functions, time(), locale, %TZ, %time_format, %clock_format.