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.
Difference between revisions of "EDT:EGL Language Primitive Type Date"
Line 7: | Line 7: | ||
*The [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/rbd/StrLib.egl?root=Tools_Project&view=log StrLib External Type] is provided for formatting Date values as Strings using functions introduced in RBD. | *The [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/rbd/StrLib.egl?root=Tools_Project&view=log StrLib External Type] is provided for formatting Date values as Strings using functions introduced in RBD. | ||
*<span style="background: none repeat scroll 0% 0% orange;">There is '''no '''support for defaultDateFormat in EDT.</span> | *<span style="background: none repeat scroll 0% 0% orange;">There is '''no '''support for defaultDateFormat in EDT.</span> | ||
+ | |||
+ | <span style="background: none repeat scroll 0% 0% orange;" /> | ||
+ | |||
+ | <img src="http://chart.apis.google.com/chart?chxl=1:|Java|JavaScript&chxr=0,0,3028|1,0,1&chxt=y,x&chbh=a,30&chs=220x330&cht=bvs&chco=3D7930,A2C180,FF9900,76A4FB&chd=s:51,DF,AC,BB&chdl=Passed|Failed|Error|Skipped&chma=0,0,0,6|0,6&chtt=Date+and+Timestamp" width="220" height="330" alt="Date and Timestamp" /> |
Revision as of 12:42, 28 October 2011
- The operations provided by the Date type are specified in the EDate External Type
- When a new Date is constructed, its value is set to the current date
- The rules for converting a String to a Date can be found in the 'asString' function of the EDate External Type
- The rules for converting a Date to a String without a specified format can be found in the 'asString' function of the EString External Type
- The rules for converting a Date to a String with a specified format can be found in the 'format' function of the StringLib External Type
- Date formats for ISO, USA, EUR, and JIS can be found in the Constants Library
- The StrLib External Type is provided for formatting Date values as Strings using functions introduced in RBD.
- There is no support for defaultDateFormat in EDT.
<span style="background: none repeat scroll 0% 0% orange;" />
<img src="http://chart.apis.google.com/chart?chxl=1:%7CJava%7CJavaScript&chxr=0,0,3028%7C1,0,1&chxt=y,x&chbh=a,30&chs=220x330&cht=bvs&chco=3D7930,A2C180,FF9900,76A4FB&chd=s:51,DF,AC,BB&chdl=Passed%7CFailed%7CError%7CSkipped&chma=0,0,0,6%7C0,6&chtt=Date+and+Timestamp" width="220" height="330" alt="Date and Timestamp" />