Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EDT:EGL Language Primitive Type Timestamp"

 
Line 1: Line 1:
 
*The operations provided by the Timestamp type are specified in the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/ETimestamp.egl?root=Tools_Project&view=log ETimestamp External Type]  
 
*The operations provided by the Timestamp type are specified in the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/ETimestamp.egl?root=Tools_Project&view=log ETimestamp External Type]  
*The Timestamp type requires that a format be specified when constructing a Timestamp object
+
*The Timestamp type can optionally include a format string such as "yyyyMMddHHmm".&nbsp; 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. <font face="monospace">new timestamp("yyyyMM")</font> is valid but <font face="monospace">new timestamp</font> is not.<br>
*When a new Timestamp object is constructed, its value is set using the current time  
+
*When a new Timestamp is constructed, its value is set using the current time  
 
*<span style="background: none repeat scroll 0% 0% orange;">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</span>  
 
*<span style="background: none repeat scroll 0% 0% orange;">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</span>  
 
*The rules for converting a String to a Timestamp can be found in the 'asString' function of the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/ETimestamp.egl?root=Tools_Project&view=log ETimestamp External Type]  
 
*The rules for converting a String to a Timestamp can be found in the 'asString' function of the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/ETimestamp.egl?root=Tools_Project&view=log ETimestamp External Type]  

Latest revision as of 13:49, 21 October 2011

  • 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