• Increase font size
  • Default font size
  • Decrease font size
Home Software SysFunc Sysfunc Reference Guide - Time and date

Sysfunc Reference Guide - Time and date

E-mail Print
Read : 3,156 times
(0 votes, average 0 out of 5)
Article Index
Sysfunc Reference Guide
Configuration parameters
System database
Disk management
Error handling
File manipulation
Filesystems
IP V4 addresses
Kernel
Logical volume manager
Miscellaneous
Message display
User interaction
Network
OS
File backup
Software packages
Services
Time and date
Temporary file management
Users and groups
Vmware-specific
Function index
All Pages

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

0

Displays

Time string

tm_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

$1Optional. 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 string

tm_timestamp

Display Unix current time (Seconds since Epoch)

Arguments

None

Returns

0

Displays

Time string

 

Please login or register to add a comment