time_stamp_to_cim/2—convert a time stamp to CIM (Common Information Model) format

The time_stamp_to_cim/2 function converts a time stamp to Common Information  Model format. The syntax for this function is as follows:

time_stamp_to_cim($TIME,$CIM)
$CIM=time_stamp_to_cim($TIME)

time_stamp_to_cim/2 arguments

Argument

Mode

Type

Description

$TIME

Input

INTEGER

Specifies the time stamp to be converted

$CIM

Output

STRING

Time stamp in CIM format

Use the time_stamp_to_cim/2 function to convert a time stamp given in $TIME to a string $CIM containing the time stamp in CIM (Common Information Model) format.

The CIM format is YYYYMMDDhhmmssuuuuuu+zzz, where:

  • YYYY is the year 
  • MM is the month (01..12) 
  • DD is the day of the month (01..31) 
  • hh is the hour of the day (0..23) 
  • mm is the minute of the hour (0..59) 
  • ss is the second of the minute of the day (0..61) (value >59 to account for leap seconds) 
  • uuuuuu is micro-seconds (0..999999) 
  • or - indicates the time zone offset direction from UTC ( or -) 
  • _zzz_is the time zone offset from UTC in minutes 

time_stamp_to_cim/2 example

$CIM = time_stamp_to_cim(time_stamp());
Was this page helpful? Yes No Submitting... Thank you

Comments