166 |
brianR |
1 |
<?xml version='1.0' encoding='utf-8'?>
|
|
|
2 |
<!DOCTYPE section [
|
|
|
3 |
<!ENTITY % myent SYSTEM "../entities.ent">
|
|
|
4 |
%myent;
|
|
|
5 |
]>
|
|
|
6 |
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
|
|
|
7 |
xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
8 |
<title>formatDateAdvanced</title>
|
|
|
9 |
<para>
|
|
|
10 |
Transform Time/ Date representation. Formats a date with a free form pattern. Uses SimpleDateFormat patterns.
|
|
|
11 |
</para>
|
|
|
12 |
<para>
|
|
|
13 |
The following pattern letters are defined (all other characters from 'A' to 'Z' and from 'a' to 'z' are reserved):
|
|
|
14 |
<programlisting><![CDATA[
|
|
|
15 |
Letter Date or Time Component Presentation Examples
|
|
|
16 |
G Era designator Text AD
|
|
|
17 |
y Year Year 1996; 96
|
|
|
18 |
M Month in year Month July; Jul; 07
|
|
|
19 |
w Week in year Number 27
|
|
|
20 |
W Week in month Number 2
|
|
|
21 |
D Day in year Number 189
|
|
|
22 |
d Day in month Number 10
|
|
|
23 |
F Day of week in month Number 2
|
|
|
24 |
E Day in week Text Tuesday; Tue
|
|
|
25 |
a Am/pm marker Text PM
|
|
|
26 |
H Hour in day (0-23) Number 0
|
|
|
27 |
k Hour in day (1-24) Number 24
|
|
|
28 |
K Hour in am/pm (0-11) Number 0
|
|
|
29 |
h Hour in am/pm (1-12) Number 12
|
|
|
30 |
m Minute in hour Number 30
|
|
|
31 |
s Second in minute Number 55
|
|
|
32 |
S Millisecond Number 978
|
|
|
33 |
z Time zone General time zone Pacific Standard Time; PST; GMT-08:00
|
|
|
34 |
Z Time zone RFC 822 time zone -0800
|
|
|
35 |
]]></programlisting>
|
|
|
36 |
</para>
|
|
|
37 |
</section>
|