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 1: | Line 1: | ||
*The operations provided by the Date type are specified in the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/EDate.egl?root=Tools_Project&view=log EDate External Type] | *The operations provided by the Date type are specified in the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/EDate.egl?root=Tools_Project&view=log EDate External Type] | ||
− | *When a new Date | + | *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 [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/EDate.egl?root=Tools_Project&view=log EDate External Type] | *The rules for converting a String to a Date 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/EDate.egl?root=Tools_Project&view=log 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 [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/EString.egl?root=Tools_Project&view=log EString External Type] | *The rules for converting a Date to a String '''without''' a specified format 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/EString.egl?root=Tools_Project&view=log 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 [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/StringLib.egl?root=Tools_Project&view=log StringLib External Type] | *The rules for converting a Date to a String '''with''' a specified format can be found in the 'format' function of the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/StringLib.egl?root=Tools_Project&view=log StringLib External Type] | ||
− | *Date formats for ISO, USA, EUR, and JIS can be found in the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/Constants.egl?root=Tools_Project&view=log Constants Library] | + | *Date formats for ISO, USA, EUR, and JIS can be found in the [http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.edt/core/org.eclipse.edt.compiler/eglsource/eglx/lang/Constants.egl?root=Tools_Project&view=log Constants Library] |
*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> |
Revision as of 13:49, 21 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.