mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-08 15:52:26 +01:00
Author:Peter Gummer
Date:2010-07-17T13:14:31.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@640 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -24,7 +24,7 @@ The following table lists format conversion codes.
|
|||||||
| day - numeric (padded with '0' to 2 figures)
|
| day - numeric (padded with '0' to 2 figures)
|
||||||
|-
|
|-
|
||||||
| ddd
|
| ddd
|
||||||
| day - text (3 letters e.g "Mon", "Tue")
|
| day - text (3 letters e.g "MON", "TUE")
|
||||||
|-
|
|-
|
||||||
| yyyy
|
| yyyy
|
||||||
| year - numeric (4 figures)
|
| year - numeric (4 figures)
|
||||||
@@ -39,7 +39,7 @@ The following table lists format conversion codes.
|
|||||||
| month - numeric (padded with '0' to 2 figures)
|
| month - numeric (padded with '0' to 2 figures)
|
||||||
|-
|
|-
|
||||||
| mmm
|
| mmm
|
||||||
| month - text (3 letters e.g "Dec", "Jan")
|
| month - text (3 letters e.g "DEC", "JAN")
|
||||||
|-
|
|-
|
||||||
| hh
|
| hh
|
||||||
| hour - numeric (24 hour clock scale by default)
|
| hour - numeric (24 hour clock scale by default)
|
||||||
@@ -66,7 +66,7 @@ The following table lists format conversion codes.
|
|||||||
| fractional seconds - numeric (precise to <n> figures)
|
| fractional seconds - numeric (precise to <n> figures)
|
||||||
|-
|
|-
|
||||||
| ':', '/', '-' and ','
|
| ':', '/', '-' and ','
|
||||||
| separators e.g. "03/Aug/97"
|
| separators e.g. "03/AUG/97"
|
||||||
|}
|
|}
|
||||||
These are some examples of output with their associated format code:
|
These are some examples of output with their associated format code:
|
||||||
{|
|
{|
|
||||||
@@ -78,10 +78,10 @@ These are some examples of output with their associated format code:
|
|||||||
| 97/8/18
|
| 97/8/18
|
||||||
|-
|
|-
|
||||||
| mmm-dd-yy
|
| mmm-dd-yy
|
||||||
| Aug-18-97
|
| AUG-18-97
|
||||||
|-
|
|-
|
||||||
| dd,mm,yyyy
|
| dd,mm,yyyy
|
||||||
| 18,Aug,1997
|
| 18,8,1997
|
||||||
|-
|
|-
|
||||||
| hh-mi-ss
|
| hh-mi-ss
|
||||||
| 13-06-32
|
| 13-06-32
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ In order to run properly you need to read [[Eiffel2Java|the library requirement]
|
|||||||
|
|
||||||
===Compiling the example===
|
===Compiling the example===
|
||||||
|
|
||||||
Since the example is using the `test.java' class, the first step is to compile the java class using the `javac' command line utility from the JDK. Once it is done, copy the `test.class' either in $ISE_EIFFEL\examples\Eiffel2Java\EIFGENs\classic\W_code or in $ISE_EIFFEL\examples\Eiffel2Java\EIFGENs\classic\F_code depending on your compilation mode (freezing vs. finalizing).
|
Since the example is using the `test.java' class, the first step is to compile the java class using the `javac' command line utility from the JDK. Once it is done, copy the `test.class' either into $ISE_EIFFEL\examples\Eiffel2Java\EIFGENs\classic\W_code or else into $ISE_EIFFEL\examples\Eiffel2Java\EIFGENs\classic\F_code, depending on your compilation mode (freezing vs. finalizing).
|
||||||
|
|
||||||
===Running the example===
|
===Running the example===
|
||||||
|
|
||||||
One the example is compiled, you can run it and here is the expected output:
|
Once the example is compiled, you can run it and here is the expected output:
|
||||||
<code>
|
<code>
|
||||||
$ sample
|
$ sample
|
||||||
Creating instance of class `test'
|
Creating instance of class `test'
|
||||||
|
|||||||
Reference in New Issue
Block a user