OpenEdge.Core.TimeStamp
- Last Updated: January 15, 2026
- 7 minute read
- OpenEdge
- Version 12.8
- Documentation
|
Method Summary
| Options | Name | Purpose | |
|---|---|---|---|
| INTEGER CompareTo (TimeStamp) |
/* Comparison method, used by SortedSet's default comparer
- If the returned value is less than 0 (zero), then the current object sorts before the object passed in.
- If the returned value equals 0 (zero) , then the current object occupies the same position in the sort order.
- If the returned value is greater than 0(zero), then the current object sorts after the object passed in.
- If either object's Value is the unknown value (?), then that sorts high/early/before
@param TimeStamp The object to compare to.
@return integer 0 = same object
+1 = sorts after
-1 = sorts before */
|
||
| LOGICAL Equals (Object) |
|
||
| INTEGER HashCode () |
/* Hashing method for creating a proper index for use with Progress.Collections.HashMap
@return integer Result of the hash-code method using this object's comparable value(s) */
|
||
| INT64 MillisecondsSinceUnixEpoch () |
/* Returns the time interval in milliseconds between unix epoch and this date
where unix epoch is an ABL date constructed as
datetime(1,1,1970,0,0,0,0)
@return int64 The number of milliseconds since the unix epoch */
|
||
| INT64 SecondsSinceUnixEpoch () |
/* Returns the time interval in seconds between unix epoch and this date
where unix epoch is an ABL date constructed as
datetime(1,1,1970,0,0,0,0)
@return int64 The seconds since the unix epoch */
|
||
| DATE ToABLDateFromISO (character) |
/** Converts an ISO date into an ABL DATE. The ISO-DATE()
requires the session's date format to be YMD before
performing the conversion; this method wraps that.
@param character An ISO date
@return datetime-tz The date value to convert. */
|
||
| DATETIME ToABLDateTimeFromISO (character) |
/** Converts an ISO date into an ABL DATETIME. The ISO-DATE()
requires the session's date format to be YMD before
performing the conversion; this method wraps that.
@param character An ISO date
@return datetime The date value to convert. */
|
||
| DATETIME-TZ ToABLDateTimeTzFromHttp (character) |
/** Converts an HTTP 'sane date' into an ABL DATETIME-TZ. The HTTP date is
defined at http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
One of the following formats will be used:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
@param character An ISO date
@return datetime-tz The date value to convert. */
|
||
| DATETIME-TZ ToABLDateTimeTzFromISO (character) |
/** Converts an ISO date into an ABL DATETIME-TZ. The ISO-DATE()
requires the session's date format to be YMD before
performing the conversion; this method wraps that.
@param character An ISO date
@return datetime-tz The date value to convert. */
|
||
| DATE ToDate () |
/* Converts the current TimeStamp to an ABL date value
@return date The datetime-tz represented by this TimeStamp */
|
||
| DATETIME ToDateTime () |
/* Converts the current TimeStamp to an ABL datetime value
@return datetime The datetime represented by this TimeStamp */
|
||
| DATETIME-TZ ToDateTimeTz () |
/* Converts the current TimeStamp to an ABL datetime-tz value
@return datetime-tz The datetime-tz represented by this TimeStamp */
|
||
| CHARACTER ToHttpDate () |
/** Converts this TimeStamp into an HTTP 'sane date', according to RFC 822, as
defined at http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
One of the following formats will be used:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
@return datetime-tz The date value to convert. */
|
||
| CHARACTER ToHttpDateFromABL (datetime-tz) |
/** Converts an ABL date into an HTTP 'sane date', according to RFC 822, as
defined at http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
One of the following formats will be used:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
@param character An ISO date
@return datetime-tz The date value to convert. */
|
||
| CHARACTER ToISODate () |
/** Converts an ABL datetime into a correct ISO date.
@return character An ISO date. */
|
||
| CHARACTER ToISODateFromABL (date) |
/** Converts an ABL datetime into a correct ISO date.
@param date The date value to convert
@return character An ISO date. */
|
||
| CHARACTER ToISODateFromABL (datetime) |
/** Converts an ABL datetime into a correct ISO date.
@param datetime The date value to convert
@return character An ISO date. */
|
||
| CHARACTER ToISODateFromABL (datetime-tz) |
/** Converts an ABL datetime into a correct ISO date.
@param datetime-tz The date value to convert
@return character An ISO date. */
|
||
| INTEGER ToTime () |
/* Returns the current TimeStamp's time in milliseconds since midnight.
@return integer The milliseconds represented by this TimeStamp */
|
||
| DATETIME-TZ TryParseTimestamp (character) |
/* Attempts to parse a string representing a timestamp into a DATETIME-TZ value
Strings that can be parsed:
YY/MM/DD@HH:MM:SS.SSS[timezone]
in this case the century is assumed to be the current century
CCYY/MM/DD@HH:MM:SS.SSS[timezone]
CCYY-MM-DDTHH:MM:SS.SSS[timezone]
Any single character can be used for date or time separators.
Timezone values can be
+NNNN
-NNNN
+NN:NN
-NN:NN
Z
@param character The timestamp string
@return datetime-tz A valid timestamp, or the unknown value if the string cannot be parsed. */
|
Constructor Summary
| Options | Name | Purpose | |
|---|---|---|---|
| TimeStamp () |
/* Default Constructor */
|
||
| TimeStamp (character) |
/* Constructor
@param character An ISO-DATE representation of a timestamp */
|
||
| TimeStamp (date) |
/* Constructor
@param date A timestamp. Timezone is inferred from the session */
|
||
| TimeStamp (datetime) |
/* Constructor
@param datetime A timestamp. Timezone is inferred from the session */
|
||
| TimeStamp (datetime-tz) |
/* Constructor
@param datetime-tz A 'complete' timestamp */
|
Property Summary
| Options | Name | Purpose | |
|---|---|---|---|
| CHARACTER Format |
|
Method Detail
INTEGER CompareTo (TimeStamp)
|
||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOGICAL Equals (Object)
|
||||||||||||||||||||||||||||||||||||||||
INTEGER HashCode ()
|
||||||||||||||||||||||||||||||||||||||||
INT64 MillisecondsSinceUnixEpoch ()
|
||||||||||||||||||||||||||||||||||||||||
INT64 SecondsSinceUnixEpoch ()
|
||||||||||||||||||||||||||||||||||||||||
DATE ToABLDateFromISO (character)
|
||||||||||||||||||||||||||||||||||||||||
DATETIME ToABLDateTimeFromISO (character)
|
||||||||||||||||||||||||||||||||||||||||
DATETIME-TZ ToABLDateTimeTzFromHttp (character)
|
||||||||||||||||||||||||||||||||||||||||
DATETIME-TZ ToABLDateTimeTzFromISO (character)
|
||||||||||||||||||||||||||||||||||||||||
DATE ToDate ()
|
||||||||||||||||||||||||||||||||||||||||
DATETIME ToDateTime ()
|
||||||||||||||||||||||||||||||||||||||||
DATETIME-TZ ToDateTimeTz ()
|
||||||||||||||||||||||||||||||||||||||||
CHARACTER ToHttpDate ()
|
||||||||||||||||||||||||||||||||||||||||
CHARACTER ToHttpDateFromABL (datetime-tz)
|
||||||||||||||||||||||||||||||||||||||||
CHARACTER ToISODate ()
|
||||||||||||||||||||||||||||||||||||||||
CHARACTER ToISODateFromABL (date)
|
||||||||||||||||||||||||||||||||||||||||
CHARACTER ToISODateFromABL (datetime)
|
||||||||||||||||||||||||||||||||||||||||
CHARACTER ToISODateFromABL (datetime-tz)
|
||||||||||||||||||||||||||||||||||||||||
INTEGER ToTime ()
|
||||||||||||||||||||||||||||||||||||||||
DATETIME-TZ TryParseTimestamp (character)
|
||||||||||||||||||||||||||||||||||||||||
Constructor Detail
TimeStamp ()
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
TimeStamp (character)
|
||||||||||||
TimeStamp (date)
|
||||||||||||
TimeStamp (datetime)
|
||||||||||||
TimeStamp (datetime-tz)
|
||||||||||||
Property Detail
CHARACTER Format
|
||||||||
|---|---|---|---|---|---|---|---|---|