mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-08 07:42:33 +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)
|
||||
|-
|
||||
| ddd
|
||||
| day - text (3 letters e.g "Mon", "Tue")
|
||||
| day - text (3 letters e.g "MON", "TUE")
|
||||
|-
|
||||
| yyyy
|
||||
| year - numeric (4 figures)
|
||||
@@ -39,7 +39,7 @@ The following table lists format conversion codes.
|
||||
| month - numeric (padded with '0' to 2 figures)
|
||||
|-
|
||||
| mmm
|
||||
| month - text (3 letters e.g "Dec", "Jan")
|
||||
| month - text (3 letters e.g "DEC", "JAN")
|
||||
|-
|
||||
| hh
|
||||
| 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)
|
||||
|-
|
||||
| ':', '/', '-' and ','
|
||||
| separators e.g. "03/Aug/97"
|
||||
| separators e.g. "03/AUG/97"
|
||||
|}
|
||||
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
|
||||
|-
|
||||
| mmm-dd-yy
|
||||
| Aug-18-97
|
||||
| AUG-18-97
|
||||
|-
|
||||
| dd,mm,yyyy
|
||||
| 18,Aug,1997
|
||||
| 18,8,1997
|
||||
|-
|
||||
| hh-mi-ss
|
||||
| 13-06-32
|
||||
|
||||
@@ -26,11 +26,11 @@ In order to run properly you need to read [[Eiffel2Java|the library requirement]
|
||||
|
||||
===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===
|
||||
|
||||
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>
|
||||
$ sample
|
||||
Creating instance of class `test'
|
||||
|
||||
Reference in New Issue
Block a user