Page 19 of 23
tm_date
Display current date as 'DD-Mmm-YYYY'
Local time is the default. If the SF_TM_UTC environment variable is set to a non empty value, UTC time is displayed. This will change date if time is near midnight and local/utc times correspond to different dates.
Arguments
None
Returns
0Displays
Time stringtm_now
Display normalized time string for current time (local or UTC)
Local time is the default. If the SF_TM_UTC environment variable is set to a non empty value, UTC time is displayed.
Default format: DD-Mmm-YYYY HH:MM:SS (<Unix time>)
Arguments
$1 | Optional. Date format (without the leading '+'). See date(1) man page for more details on macros supported in format string. |
Returns
date command return code (!=0 if syntax error in format)Displays
Time stringtm_timestamp
Display Unix current time (Seconds since Epoch)
Arguments
None