IRISLIB database
UTC Class Reference
Inheritance diagram for UTC:
Collaboration diagram for UTC:

Static Public Member Functions

_.Library.Integer Compare (_, _.Library.TimeStamp t1, _, _.Library.TimeStamp t2)
 Compare two timestamps, return 0 if equal, >0 if t1 is later, <0 if t2 is later.
 
_.Library.TimeStamp ConvertHorologToTimeStamp (_, _.Library.String horolog)
 Convert horolog to timstamp value.
 
_.Library.TimeStamp ConvertLocaltoUTC (_, _.Library.TimeStamp timestamp)
 Convert local timestamp to UTC timestamp.
 
_.Library.String ConvertTimeStampToHorolog (_, _.Library.TimeStamp timestamp)
 Convert timstamp to horolog value.
 
_.Library.TimeStamp ConvertUTCtoLocal (_, _.Library.TimeStamp timestamp)
 Convert UTC timestamp to local timestamp.
 
_.Library.Integer Diff (_, _.Library.TimeStamp later, _, _.Library.TimeStamp earlier)
 Return the number of seconds difference between two timestamps. More...
 
_.Library.TimeStamp Normalize (_, _.Library.RawString val)
 Strip off trailing zeros and trailing dot for normalized form.
 
_.Library.TimeStamp NowLocal ()
 Return the current local timestamp.
 
_.Library.TimeStamp NowUTC ()
 Return the current UTC timestamp.
 
_.Library.Integer SecondsSinceCOSEpoch (_.Library.String TimeStamp)
 Seconds since Dec 31, 1840. More...
 
_.Library.Integer SecondsSinceUnixEpoch (_.Library.String TimeStamp)
 Seconds since Jan 1 1970. More...
 
_.Library.Integer SecondsSinceWin32Epoch (_.Library.String TimeStamp)
 Seconds since Jan 1 1601. More...
 
_.Library.Integer Win32EpochFILETIME (_.Library.String TimeStamp)
 100-nanoseconds since Jan 1 1601. More...
 
_.Library.TimeStamp Win32EpochFILETIMEtoLocalH (_.Library.String Win32EpochFILETIME)
 Converts a Windows FILETIME value to a $H value. More...
 
- Static Public Member Functions inherited from DataType
_.Library.Status IsValid (_, _.Library.RawString val)
 Return $$$OK if the value is valid for the datatype, or an error code otherwise.
 

Additional Inherited Members

- Static Public Attributes inherited from DataType
 INDEXNULLMARKER = None
 Override this parameter value to specify what value should be used as a null marker when a property of the type is used in a subscript of an index map. More...
 

Member Function Documentation

◆ Diff()

_.Library.Integer Diff (   _,
_.Library.TimeStamp  later,
  _,
_.Library.TimeStamp  earlier 
)
static

Return the number of seconds difference between two timestamps.

if 'later' is earlier than 'earlier' then the result is a negative number.

◆ SecondsSinceCOSEpoch()

_.Library.Integer SecondsSinceCOSEpoch ( _.Library.String  TimeStamp)
static

Seconds since Dec 31, 1840.

Minimum timestamp="0,0"

◆ SecondsSinceUnixEpoch()

_.Library.Integer SecondsSinceUnixEpoch ( _.Library.String  TimeStamp)
static

Seconds since Jan 1 1970.

Minimum timestamp="47117,0"

◆ SecondsSinceWin32Epoch()

_.Library.Integer SecondsSinceWin32Epoch ( _.Library.String  TimeStamp)
static

Seconds since Jan 1 1601.

Minimum timestamp="0,0"

◆ Win32EpochFILETIME()

_.Library.Integer Win32EpochFILETIME ( _.Library.String  TimeStamp)
static

100-nanoseconds since Jan 1 1601.

Matches Windows FILETIME. Minimum timestamp="0,0"

◆ Win32EpochFILETIMEtoLocalH()

_.Library.TimeStamp Win32EpochFILETIMEtoLocalH ( _.Library.String  Win32EpochFILETIME)
static

Converts a Windows FILETIME value to a $H value.

Minimum FILETIME=75735648000000000 = 12/31/1840 = "0,0"