Removed '/' in the wiki title, otherwise it leads to issue with Apache2, see Directive AllowEncodedSlashes )

Updated code to escape text like [0] in the wiki.

git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1429 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
eiffel-org
2015-08-14 10:34:13 +00:00
parent 36d1c639a8
commit 06854bff7e

View File

@@ -1,4 +1,4 @@
[[Property:title|DATE / TIME to STRING Conversion]] [[Property:title|DATE TIME to STRING Conversion]]
[[Property:weight|3]] [[Property:weight|3]]
[[Property:uuid|88972ba4-694b-8558-b0c8-87b1fc40afc4]] [[Property:uuid|88972ba4-694b-8558-b0c8-87b1fc40afc4]]
The classes <eiffel>TIME</eiffel>, <eiffel>DATE</eiffel>, and <eiffel>DATE_TIME</eiffel> provide a query <eiffel>formatted_out</eiffel> which can be used to retrieve a string containing the date or time in a format specified by a string or format conversion codes that the caller provides as an argument. The conversion is done in the <eiffel>DATE_TIME_CODE_STRING</eiffel> class. So for example, if a <eiffel>DATE</eiffel> instance referenced by <eiffel>my_date</eiffel> has a value of February 3, 2008, then applying the query: The classes <eiffel>TIME</eiffel>, <eiffel>DATE</eiffel>, and <eiffel>DATE_TIME</eiffel> provide a query <eiffel>formatted_out</eiffel> which can be used to retrieve a string containing the date or time in a format specified by a string or format conversion codes that the caller provides as an argument. The conversion is done in the <eiffel>DATE_TIME_CODE_STRING</eiffel> class. So for example, if a <eiffel>DATE</eiffel> instance referenced by <eiffel>my_date</eiffel> has a value of February 3, 2008, then applying the query:
@@ -20,7 +20,7 @@ The following table lists format conversion codes.
| dd | dd
| day - numeric | day - numeric
|- |-
| [0]dd | <nowiki>[0]dd</nowiki>
| day - numeric (padded with '0' to 2 figures) | day - numeric (padded with '0' to 2 figures)
|- |-
| ddd | ddd
@@ -35,7 +35,7 @@ The following table lists format conversion codes.
| mm | mm
| month - numeric | month - numeric
|- |-
| [0]mm | <nowiki>[0]mm</nowiki>
| month - numeric (padded with '0' to 2 figures) | month - numeric (padded with '0' to 2 figures)
|- |-
| mmm | mmm
@@ -44,7 +44,7 @@ The following table lists format conversion codes.
| hh | hh
| hour - numeric (24 hour clock scale by default) | hour - numeric (24 hour clock scale by default)
|- |-
| [0]hh | <nowiki>[0]hh</nowiki>
| hour - numeric (padded with '0' to 2 figures) | hour - numeric (padded with '0' to 2 figures)
|- |-
| hh12 | hh12
@@ -53,13 +53,13 @@ The following table lists format conversion codes.
| mi | mi
| minute - numeric | minute - numeric
|- |-
| [0]mi | <nowiki>[0]mi</nowiki>
| minute - numeric (padded with '0' to 2 figures) | minute - numeric (padded with '0' to 2 figures)
|- |-
| ss | ss
| seconds - numeric | seconds - numeric
|- |-
| [0]ss | <nowiki>[0]ss</nowiki>
| seconds - numeric (padded with '0' to 2 figures) | seconds - numeric (padded with '0' to 2 figures)
|- |-
| ff<n> | ff<n>
@@ -82,7 +82,7 @@ These are some examples of output with their associated format code:
| yy/mm/dd | yy/mm/dd
| 08/2/3 | 08/2/3
|- |-
| mmm-[0]dd-yy | <nowiki>mmm-[0]dd-yy</nowiki>
| FEB-03-08 | FEB-03-08
|- |-
| dd,mm,yyyy | dd,mm,yyyy
@@ -94,13 +94,13 @@ These are some examples of output with their associated format code:
| hh12,mi,ss | hh12,mi,ss
| 1,6,32 | 1,6,32
|- |-
| hh12:[0]mi:[0]ss:ff2 am | <nowiki>hh12:[0]mi:[0]ss:ff2 am</nowiki>
| 1:06:32.25 PM | 1:06:32.25 PM
|- |-
| [0]hh:[0]mi:[0]ss.ff3 | <nowiki>[0]hh:[0]mi:[0]ss.ff3</nowiki>
| 13:06:32.248 | 13:06:32.248
|- |-
| [0]mm/dd/yy hh12:mi:ss.ff3 | <nowiki>[0]mm/dd/yy hh12:mi:ss.ff3</nowiki>
| 02/3/08 1:6:32.248 | 02/3/08 1:6:32.248
|} |}