Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EDT:EGL Language Primitive Type Timestamp

  • The operations provided by the Timestamp type are specified in the ETimestamp External Type
  • The Timestamp type can optionally include a format string such as "yyyyMMddHHmm".  A Timestamp with a format is a value. A Timestamp without a format is a reference, and it may point to any other Timestamp, with or without a format. It's not possible to create a Timestamp unless it has a format, i.e. new timestamp("yyyyMM") is valid but new timestamp is not.
  • When a new Timestamp is constructed, its value is set using the current time
  • While ETimestamp supports values with fractions of a second to 6 digits, the precision of the value stored at runtime is platform specific and may not support as many digits
  • The rules for converting a String to a Timestamp can be found in the 'asString' function of the ETimestamp External Type
  • The rules for converting a Timestamp to a String without a specified format can be found in the 'asString' function of the EString External Type
  • The rules for converting a Timestamp to a String with a specified format can be found in the 'format' function of the StringLib External Type
  • Timestamp formats for DB2 and ODBC can be found in the Constants Library
  • There is no support for defaultTimestampFormat in EDT.

Back to the top