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: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:
@@ -20,7 +20,7 @@ The following table lists format conversion codes.
| dd
| day - numeric
|-
| [0]dd
| <nowiki>[0]dd</nowiki>
| day - numeric (padded with '0' to 2 figures)
|-
| ddd
@@ -35,7 +35,7 @@ The following table lists format conversion codes.
| mm
| month - numeric
|-
| [0]mm
| <nowiki>[0]mm</nowiki>
| month - numeric (padded with '0' to 2 figures)
|-
| mmm
@@ -44,7 +44,7 @@ The following table lists format conversion codes.
| hh
| hour - numeric (24 hour clock scale by default)
|-
| [0]hh
| <nowiki>[0]hh</nowiki>
| hour - numeric (padded with '0' to 2 figures)
|-
| hh12
@@ -53,13 +53,13 @@ The following table lists format conversion codes.
| mi
| minute - numeric
|-
| [0]mi
| <nowiki>[0]mi</nowiki>
| minute - numeric (padded with '0' to 2 figures)
|-
| ss
| seconds - numeric
|-
| [0]ss
| <nowiki>[0]ss</nowiki>
| seconds - numeric (padded with '0' to 2 figures)
|-
| ff<n>
@@ -82,7 +82,7 @@ These are some examples of output with their associated format code:
| yy/mm/dd
| 08/2/3
|-
| mmm-[0]dd-yy
| <nowiki>mmm-[0]dd-yy</nowiki>
| FEB-03-08
|-
| dd,mm,yyyy
@@ -94,13 +94,13 @@ These are some examples of output with their associated format code:
| hh12,mi,ss
| 1,6,32
|-
| hh12:[0]mi:[0]ss:ff2 am
| <nowiki>hh12:[0]mi:[0]ss:ff2 am</nowiki>
| 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
|-
| [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
|}