forked from unicode-org/icu-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclassDateFormat.html
2641 lines (2459 loc) · 196 KB
/
classDateFormat.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ICU 74.1: icu::DateFormat Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">ICU 74.1<span id="projectnumber"> 74.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceicu.html">icu</a></li><li class="navelem"><a class="el" href="classicu_1_1DateFormat.html">DateFormat</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="#friends">Friends</a> </div>
<div class="headertitle"><div class="title">icu::DateFormat Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> is an abstract class for a family of classes that convert dates and times from their internal representations to textual form and back again in a language-independent manner.
<a href="classicu_1_1DateFormat.html#details">More...</a></p>
<p><code>#include <<a class="el" href="datefmt_8h_source.html">datefmt.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for icu::DateFormat:</div>
<div class="dyncontent">
<div class="center">
<img src="classicu_1_1DateFormat.png" usemap="#icu::DateFormat_map" alt=""/>
<map id="icu::DateFormat_map" name="icu::DateFormat_map">
<area href="classicu_1_1Format.html" title="Base class for all formats." alt="icu::Format" shape="rect" coords="0,112,137,136"/>
<area href="classicu_1_1UObject.html" title="UObject is the common ICU "boilerplate" class." alt="icu::UObject" shape="rect" coords="0,56,137,80"/>
<area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class." alt="icu::UMemory" shape="rect" coords="0,0,137,24"/>
<area href="classicu_1_1SimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manne..." alt="icu::SimpleDateFormat" shape="rect" coords="0,224,137,248"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ac24ea2d479ab818437dedb3470800dc7"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> { <br />
  <b>kNone</b> = -1
, <b>kFull</b> = 0
, <b>kLong</b> = 1
, <b>kMedium</b> = 2
, <br />
  <b>kShort</b> = 3
, <b>kDateOffset</b> = kShort + 1
, <b>kDateTime</b> = 8
, <b>kDateTimeOffset</b> = kDateTime + 1
, <br />
  <b>kRelative</b> = (1 << 7)
, <b>kFullRelative</b> = (kFull | kRelative)
, <b>kLongRelative</b> = kLong | kRelative
, <b>kMediumRelative</b> = kMedium | kRelative
, <br />
  <b>kShortRelative</b> = kShort | kRelative
, <b>kDefault</b> = kMedium
, <a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7ab4dbd844bad9434716ae812fc012784e">FULL</a> = kFull
, <b>LONG</b> = kLong
, <br />
  <b>MEDIUM</b> = kMedium
, <b>SHORT</b> = kShort
, <b>DEFAULT</b> = kDefault
, <b>DATE_OFFSET</b> = kDateOffset
, <br />
  <b>NONE</b> = kNone
, <b>DATE_TIME</b> = kDateTime
<br />
}</td></tr>
<tr class="memdesc:ac24ea2d479ab818437dedb3470800dc7"><td class="mdescLeft"> </td><td class="mdescRight">Constants for various style patterns. <a href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">More...</a><br /></td></tr>
<tr class="separator:ac24ea2d479ab818437dedb3470800dc7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad13e430a9697228c96ca1f350b3d9317"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ad13e430a9697228c96ca1f350b3d9317">EField</a> { <br />
  <b>kEraField</b> = UDAT_ERA_FIELD
, <b>kYearField</b> = UDAT_YEAR_FIELD
, <b>kMonthField</b> = UDAT_MONTH_FIELD
, <b>kDateField</b> = UDAT_DATE_FIELD
, <br />
  <b>kHourOfDay1Field</b> = UDAT_HOUR_OF_DAY1_FIELD
, <b>kHourOfDay0Field</b> = UDAT_HOUR_OF_DAY0_FIELD
, <b>kMinuteField</b> = UDAT_MINUTE_FIELD
, <b>kSecondField</b> = UDAT_SECOND_FIELD
, <br />
  <b>kMillisecondField</b> = UDAT_FRACTIONAL_SECOND_FIELD
, <b>kDayOfWeekField</b> = UDAT_DAY_OF_WEEK_FIELD
, <b>kDayOfYearField</b> = UDAT_DAY_OF_YEAR_FIELD
, <b>kDayOfWeekInMonthField</b> = UDAT_DAY_OF_WEEK_IN_MONTH_FIELD
, <br />
  <b>kWeekOfYearField</b> = UDAT_WEEK_OF_YEAR_FIELD
, <b>kWeekOfMonthField</b> = UDAT_WEEK_OF_MONTH_FIELD
, <b>kAmPmField</b> = UDAT_AM_PM_FIELD
, <b>kHour1Field</b> = UDAT_HOUR1_FIELD
, <br />
  <b>kHour0Field</b> = UDAT_HOUR0_FIELD
, <b>kTimezoneField</b> = UDAT_TIMEZONE_FIELD
, <b>kYearWOYField</b> = UDAT_YEAR_WOY_FIELD
, <b>kDOWLocalField</b> = UDAT_DOW_LOCAL_FIELD
, <br />
  <b>kExtendedYearField</b> = UDAT_EXTENDED_YEAR_FIELD
, <b>kJulianDayField</b> = UDAT_JULIAN_DAY_FIELD
, <b>kMillisecondsInDayField</b> = UDAT_MILLISECONDS_IN_DAY_FIELD
, <b>ERA_FIELD</b> = UDAT_ERA_FIELD
, <br />
  <b>YEAR_FIELD</b> = UDAT_YEAR_FIELD
, <b>MONTH_FIELD</b> = UDAT_MONTH_FIELD
, <b>DATE_FIELD</b> = UDAT_DATE_FIELD
, <b>HOUR_OF_DAY1_FIELD</b> = UDAT_HOUR_OF_DAY1_FIELD
, <br />
  <b>HOUR_OF_DAY0_FIELD</b> = UDAT_HOUR_OF_DAY0_FIELD
, <b>MINUTE_FIELD</b> = UDAT_MINUTE_FIELD
, <b>SECOND_FIELD</b> = UDAT_SECOND_FIELD
, <b>MILLISECOND_FIELD</b> = UDAT_FRACTIONAL_SECOND_FIELD
, <br />
  <b>DAY_OF_WEEK_FIELD</b> = UDAT_DAY_OF_WEEK_FIELD
, <b>DAY_OF_YEAR_FIELD</b> = UDAT_DAY_OF_YEAR_FIELD
, <b>DAY_OF_WEEK_IN_MONTH_FIELD</b> = UDAT_DAY_OF_WEEK_IN_MONTH_FIELD
, <b>WEEK_OF_YEAR_FIELD</b> = UDAT_WEEK_OF_YEAR_FIELD
, <br />
  <b>WEEK_OF_MONTH_FIELD</b> = UDAT_WEEK_OF_MONTH_FIELD
, <b>AM_PM_FIELD</b> = UDAT_AM_PM_FIELD
, <b>HOUR1_FIELD</b> = UDAT_HOUR1_FIELD
, <b>HOUR0_FIELD</b> = UDAT_HOUR0_FIELD
, <br />
  <b>TIMEZONE_FIELD</b> = UDAT_TIMEZONE_FIELD
<br />
}</td></tr>
<tr class="memdesc:ad13e430a9697228c96ca1f350b3d9317"><td class="mdescLeft"> </td><td class="mdescRight">Field selector for <a class="el" href="classicu_1_1FieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...">FieldPosition</a> for <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> fields. <a href="classicu_1_1DateFormat.html#ad13e430a9697228c96ca1f350b3d9317">More...</a><br /></td></tr>
<tr class="separator:ad13e430a9697228c96ca1f350b3d9317"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1833e0e0e49a4bf63f35c4534afc20bd"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a1833e0e0e49a4bf63f35c4534afc20bd">~DateFormat</a> ()</td></tr>
<tr class="memdesc:a1833e0e0e49a4bf63f35c4534afc20bd"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="classicu_1_1DateFormat.html#a1833e0e0e49a4bf63f35c4534afc20bd">More...</a><br /></td></tr>
<tr class="separator:a1833e0e0e49a4bf63f35c4534afc20bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb4706c2fb1fbf5827e24cc2ba13ab37"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#abb4706c2fb1fbf5827e24cc2ba13ab37">clone</a> () const override=0</td></tr>
<tr class="memdesc:abb4706c2fb1fbf5827e24cc2ba13ab37"><td class="mdescLeft"> </td><td class="mdescRight">Clones this object polymorphically. <a href="classicu_1_1DateFormat.html#abb4706c2fb1fbf5827e24cc2ba13ab37">More...</a><br /></td></tr>
<tr class="separator:abb4706c2fb1fbf5827e24cc2ba13ab37"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a173ce490f43b19cab6c36ee1269e9209"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a173ce490f43b19cab6c36ee1269e9209">operator==</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &) const override</td></tr>
<tr class="memdesc:a173ce490f43b19cab6c36ee1269e9209"><td class="mdescLeft"> </td><td class="mdescRight">Equality operator. <a href="classicu_1_1DateFormat.html#a173ce490f43b19cab6c36ee1269e9209">More...</a><br /></td></tr>
<tr class="separator:a173ce490f43b19cab6c36ee1269e9209"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7b8700bfb9a9bca2bd03481107f53627"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a7b8700bfb9a9bca2bd03481107f53627">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const override</td></tr>
<tr class="memdesc:a7b8700bfb9a9bca2bd03481107f53627"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> an object to produce a string. <a href="classicu_1_1DateFormat.html#a7b8700bfb9a9bca2bd03481107f53627">More...</a><br /></td></tr>
<tr class="separator:a7b8700bfb9a9bca2bd03481107f53627"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa8873e01cc0b2ee0cefaf8eabb605796"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#aa8873e01cc0b2ee0cefaf8eabb605796">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const override</td></tr>
<tr class="memdesc:aa8873e01cc0b2ee0cefaf8eabb605796"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> an object to produce a string. <a href="classicu_1_1DateFormat.html#aa8873e01cc0b2ee0cefaf8eabb605796">More...</a><br /></td></tr>
<tr class="separator:aa8873e01cc0b2ee0cefaf8eabb605796"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab558bfb15d2cf220147ae9b93e55c8a8"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ab558bfb15d2cf220147ae9b93e55c8a8">format</a> (<a class="el" href="classicu_1_1Calendar.html">Calendar</a> &cal, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &fieldPosition) const =0</td></tr>
<tr class="memdesc:ab558bfb15d2cf220147ae9b93e55c8a8"><td class="mdescLeft"> </td><td class="mdescRight">Formats a date into a date/time string. <a href="classicu_1_1DateFormat.html#ab558bfb15d2cf220147ae9b93e55c8a8">More...</a><br /></td></tr>
<tr class="separator:ab558bfb15d2cf220147ae9b93e55c8a8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a272e5d18b28fb38064e0969b2b5c3160"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a272e5d18b28fb38064e0969b2b5c3160">format</a> (<a class="el" href="classicu_1_1Calendar.html">Calendar</a> &cal, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a272e5d18b28fb38064e0969b2b5c3160"><td class="mdescLeft"> </td><td class="mdescRight">Formats a date into a date/time string. <a href="classicu_1_1DateFormat.html#a272e5d18b28fb38064e0969b2b5c3160">More...</a><br /></td></tr>
<tr class="separator:a272e5d18b28fb38064e0969b2b5c3160"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afceda8fd5f494dd65c10fcb01d3a84a1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#afceda8fd5f494dd65c10fcb01d3a84a1">format</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &fieldPosition) const</td></tr>
<tr class="memdesc:afceda8fd5f494dd65c10fcb01d3a84a1"><td class="mdescLeft"> </td><td class="mdescRight">Formats a UDate into a date/time string. <a href="classicu_1_1DateFormat.html#afceda8fd5f494dd65c10fcb01d3a84a1">More...</a><br /></td></tr>
<tr class="separator:afceda8fd5f494dd65c10fcb01d3a84a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a55963b34bbe78c8bf43c9c751a079629"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a55963b34bbe78c8bf43c9c751a079629">format</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a55963b34bbe78c8bf43c9c751a079629"><td class="mdescLeft"> </td><td class="mdescRight">Formats a UDate into a date/time string. <a href="classicu_1_1DateFormat.html#a55963b34bbe78c8bf43c9c751a079629">More...</a><br /></td></tr>
<tr class="separator:a55963b34bbe78c8bf43c9c751a079629"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a58a60cf3d152500e39b482951b6a958d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a58a60cf3d152500e39b482951b6a958d">format</a> (<a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> date, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo) const</td></tr>
<tr class="memdesc:a58a60cf3d152500e39b482951b6a958d"><td class="mdescLeft"> </td><td class="mdescRight">Formats a UDate into a date/time string. <a href="classicu_1_1DateFormat.html#a58a60cf3d152500e39b482951b6a958d">More...</a><br /></td></tr>
<tr class="separator:a58a60cf3d152500e39b482951b6a958d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a088aa13d607c682cc435d4152613cfc1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a088aa13d607c682cc435d4152613cfc1">parse</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &text, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a088aa13d607c682cc435d4152613cfc1"><td class="mdescLeft"> </td><td class="mdescRight">Parse a date/time string. <a href="classicu_1_1DateFormat.html#a088aa13d607c682cc435d4152613cfc1">More...</a><br /></td></tr>
<tr class="separator:a088aa13d607c682cc435d4152613cfc1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a82a10d2a3b70277bd983a638477bf154"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a82a10d2a3b70277bd983a638477bf154">parse</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &text, <a class="el" href="classicu_1_1Calendar.html">Calendar</a> &cal, <a class="el" href="classicu_1_1ParsePosition.html">ParsePosition</a> &pos) const =0</td></tr>
<tr class="memdesc:a82a10d2a3b70277bd983a638477bf154"><td class="mdescLeft"> </td><td class="mdescRight">Parse a date/time string beginning at the given parse position. <a href="classicu_1_1DateFormat.html#a82a10d2a3b70277bd983a638477bf154">More...</a><br /></td></tr>
<tr class="separator:a82a10d2a3b70277bd983a638477bf154"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac72fe5dee0f13c9e4d673d2f19bcad5e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ac72fe5dee0f13c9e4d673d2f19bcad5e">parse</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &text, <a class="el" href="classicu_1_1ParsePosition.html">ParsePosition</a> &pos) const</td></tr>
<tr class="memdesc:ac72fe5dee0f13c9e4d673d2f19bcad5e"><td class="mdescLeft"> </td><td class="mdescRight">Parse a date/time string beginning at the given parse position. <a href="classicu_1_1DateFormat.html#ac72fe5dee0f13c9e4d673d2f19bcad5e">More...</a><br /></td></tr>
<tr class="separator:ac72fe5dee0f13c9e4d673d2f19bcad5e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a408b919290c211566a17e596f1014e79"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a408b919290c211566a17e596f1014e79">parseObject</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &source, <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &result, <a class="el" href="classicu_1_1ParsePosition.html">ParsePosition</a> &parse_pos) const override</td></tr>
<tr class="memdesc:a408b919290c211566a17e596f1014e79"><td class="mdescLeft"> </td><td class="mdescRight">Parse a string to produce an object. <a href="classicu_1_1DateFormat.html#a408b919290c211566a17e596f1014e79">More...</a><br /></td></tr>
<tr class="separator:a408b919290c211566a17e596f1014e79"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad92c174e45a8d68c6fb079b7ff4c2e90"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ad92c174e45a8d68c6fb079b7ff4c2e90">isLenient</a> (void) const</td></tr>
<tr class="memdesc:ad92c174e45a8d68c6fb079b7ff4c2e90"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether both date/time parsing in the encapsulated <a class="el" href="classicu_1_1Calendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...">Calendar</a> object and <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> whitespace & numeric processing is lenient. <a href="classicu_1_1DateFormat.html#ad92c174e45a8d68c6fb079b7ff4c2e90">More...</a><br /></td></tr>
<tr class="separator:ad92c174e45a8d68c6fb079b7ff4c2e90"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5ed3fc3977aabeae6b0188642cad5d30"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a5ed3fc3977aabeae6b0188642cad5d30">setLenient</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> lenient)</td></tr>
<tr class="memdesc:a5ed3fc3977aabeae6b0188642cad5d30"><td class="mdescLeft"> </td><td class="mdescRight">Specifies whether date/time parsing is to be lenient. <a href="classicu_1_1DateFormat.html#a5ed3fc3977aabeae6b0188642cad5d30">More...</a><br /></td></tr>
<tr class="separator:a5ed3fc3977aabeae6b0188642cad5d30"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5bc312fa81580a9375060dacde159d72"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a5bc312fa81580a9375060dacde159d72">isCalendarLenient</a> (void) const</td></tr>
<tr class="memdesc:a5bc312fa81580a9375060dacde159d72"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether date/time parsing in the encapsulated <a class="el" href="classicu_1_1Calendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...">Calendar</a> object processing is lenient. <a href="classicu_1_1DateFormat.html#a5bc312fa81580a9375060dacde159d72">More...</a><br /></td></tr>
<tr class="separator:a5bc312fa81580a9375060dacde159d72"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b40d07638285a47689113a920bedf16"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a4b40d07638285a47689113a920bedf16">setCalendarLenient</a> (<a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> lenient)</td></tr>
<tr class="memdesc:a4b40d07638285a47689113a920bedf16"><td class="mdescLeft"> </td><td class="mdescRight">Specifies whether encapsulated <a class="el" href="classicu_1_1Calendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...">Calendar</a> date/time parsing is to be lenient. <a href="classicu_1_1DateFormat.html#a4b40d07638285a47689113a920bedf16">More...</a><br /></td></tr>
<tr class="separator:a4b40d07638285a47689113a920bedf16"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68b0cb83de67f2270ce974ce556e1cca"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classicu_1_1Calendar.html">Calendar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a68b0cb83de67f2270ce974ce556e1cca">getCalendar</a> (void) const</td></tr>
<tr class="memdesc:a68b0cb83de67f2270ce974ce556e1cca"><td class="mdescLeft"> </td><td class="mdescRight">Gets the calendar associated with this date/time formatter. <a href="classicu_1_1DateFormat.html#a68b0cb83de67f2270ce974ce556e1cca">More...</a><br /></td></tr>
<tr class="separator:a68b0cb83de67f2270ce974ce556e1cca"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad2b7aabafbfdc5661ff80bb29f1c5a6b"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ad2b7aabafbfdc5661ff80bb29f1c5a6b">adoptCalendar</a> (<a class="el" href="classicu_1_1Calendar.html">Calendar</a> *calendarToAdopt)</td></tr>
<tr class="memdesc:ad2b7aabafbfdc5661ff80bb29f1c5a6b"><td class="mdescLeft"> </td><td class="mdescRight">Set the calendar to be used by this date format. <a href="classicu_1_1DateFormat.html#ad2b7aabafbfdc5661ff80bb29f1c5a6b">More...</a><br /></td></tr>
<tr class="separator:ad2b7aabafbfdc5661ff80bb29f1c5a6b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7194b6b09c9022ca0fa5505a7139cfc8"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a7194b6b09c9022ca0fa5505a7139cfc8">setCalendar</a> (const <a class="el" href="classicu_1_1Calendar.html">Calendar</a> &newCalendar)</td></tr>
<tr class="memdesc:a7194b6b09c9022ca0fa5505a7139cfc8"><td class="mdescLeft"> </td><td class="mdescRight">Set the calendar to be used by this date format. <a href="classicu_1_1DateFormat.html#a7194b6b09c9022ca0fa5505a7139cfc8">More...</a><br /></td></tr>
<tr class="separator:a7194b6b09c9022ca0fa5505a7139cfc8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3b17d157b570bddc950db68e536d8e87"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a3b17d157b570bddc950db68e536d8e87">getNumberFormat</a> (void) const</td></tr>
<tr class="memdesc:a3b17d157b570bddc950db68e536d8e87"><td class="mdescLeft"> </td><td class="mdescRight">Gets the number formatter which this date/time formatter uses to format and parse the numeric portions of the pattern. <a href="classicu_1_1DateFormat.html#a3b17d157b570bddc950db68e536d8e87">More...</a><br /></td></tr>
<tr class="separator:a3b17d157b570bddc950db68e536d8e87"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ffd07d528e81bdafd6ca956ff1b2f1e"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a6ffd07d528e81bdafd6ca956ff1b2f1e">adoptNumberFormat</a> (<a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> *formatToAdopt)</td></tr>
<tr class="memdesc:a6ffd07d528e81bdafd6ca956ff1b2f1e"><td class="mdescLeft"> </td><td class="mdescRight">Allows you to set the number formatter. <a href="classicu_1_1DateFormat.html#a6ffd07d528e81bdafd6ca956ff1b2f1e">More...</a><br /></td></tr>
<tr class="separator:a6ffd07d528e81bdafd6ca956ff1b2f1e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaaf7de99af3a3c196c0e1790c97acd0d"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#aaaf7de99af3a3c196c0e1790c97acd0d">setNumberFormat</a> (const <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> &newNumberFormat)</td></tr>
<tr class="memdesc:aaaf7de99af3a3c196c0e1790c97acd0d"><td class="mdescLeft"> </td><td class="mdescRight">Allows you to set the number formatter. <a href="classicu_1_1DateFormat.html#aaaf7de99af3a3c196c0e1790c97acd0d">More...</a><br /></td></tr>
<tr class="separator:aaaf7de99af3a3c196c0e1790c97acd0d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a215d06d6f245fd7d8746a4dc879039d1"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classicu_1_1TimeZone.html">TimeZone</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a215d06d6f245fd7d8746a4dc879039d1">getTimeZone</a> (void) const</td></tr>
<tr class="memdesc:a215d06d6f245fd7d8746a4dc879039d1"><td class="mdescLeft"> </td><td class="mdescRight">Returns a reference to the <a class="el" href="classicu_1_1TimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> used by this <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a>'s calendar. <a href="classicu_1_1DateFormat.html#a215d06d6f245fd7d8746a4dc879039d1">More...</a><br /></td></tr>
<tr class="separator:a215d06d6f245fd7d8746a4dc879039d1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad9e9021ee3c6f771410d91fd0a323542"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ad9e9021ee3c6f771410d91fd0a323542">adoptTimeZone</a> (<a class="el" href="classicu_1_1TimeZone.html">TimeZone</a> *zoneToAdopt)</td></tr>
<tr class="memdesc:ad9e9021ee3c6f771410d91fd0a323542"><td class="mdescLeft"> </td><td class="mdescRight">Sets the time zone for the calendar of this <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> object. <a href="classicu_1_1DateFormat.html#ad9e9021ee3c6f771410d91fd0a323542">More...</a><br /></td></tr>
<tr class="separator:ad9e9021ee3c6f771410d91fd0a323542"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6ce5ca3c47e69e0d14a632fe8afc9a91"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a6ce5ca3c47e69e0d14a632fe8afc9a91">setTimeZone</a> (const <a class="el" href="classicu_1_1TimeZone.html">TimeZone</a> &zone)</td></tr>
<tr class="memdesc:a6ce5ca3c47e69e0d14a632fe8afc9a91"><td class="mdescLeft"> </td><td class="mdescRight">Sets the time zone for the calendar of this <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> object. <a href="classicu_1_1DateFormat.html#a6ce5ca3c47e69e0d14a632fe8afc9a91">More...</a><br /></td></tr>
<tr class="separator:a6ce5ca3c47e69e0d14a632fe8afc9a91"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab1c94e06970b2ea74fd1811cdd715576"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ab1c94e06970b2ea74fd1811cdd715576">setContext</a> (<a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> value, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr>
<tr class="memdesc:ab1c94e06970b2ea74fd1811cdd715576"><td class="mdescLeft"> </td><td class="mdescRight">Set a particular UDisplayContext value in the formatter, such as UDISPCTX_CAPITALIZATION_FOR_STANDALONE. <a href="classicu_1_1DateFormat.html#ab1c94e06970b2ea74fd1811cdd715576">More...</a><br /></td></tr>
<tr class="separator:ab1c94e06970b2ea74fd1811cdd715576"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a589ba312a6e19ba3da5aad952f4c10e3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="udisplaycontext_8h.html#ac80aa1aceff6c7ad2e9f983a19d8d868">UDisplayContext</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a589ba312a6e19ba3da5aad952f4c10e3">getContext</a> (<a class="el" href="udisplaycontext_8h.html#a7ce674e7cd26fb195f7344b861af5427">UDisplayContextType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a589ba312a6e19ba3da5aad952f4c10e3"><td class="mdescLeft"> </td><td class="mdescRight">Get the formatter's UDisplayContext value for the specified UDisplayContextType, such as UDISPCTX_TYPE_CAPITALIZATION. <a href="classicu_1_1DateFormat.html#a589ba312a6e19ba3da5aad952f4c10e3">More...</a><br /></td></tr>
<tr class="separator:a589ba312a6e19ba3da5aad952f4c10e3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5b597069e5d3263ea82f23e76aa7c249"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a5b597069e5d3263ea82f23e76aa7c249">setBooleanAttribute</a> (<a class="el" href="udat_8h.html#afb77ea9256f65ea466b4c9b73f33bbaa">UDateFormatBooleanAttribute</a> attr, <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> newvalue, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr>
<tr class="memdesc:a5b597069e5d3263ea82f23e76aa7c249"><td class="mdescLeft"> </td><td class="mdescRight">Sets an boolean attribute on this <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a>. <a href="classicu_1_1DateFormat.html#a5b597069e5d3263ea82f23e76aa7c249">More...</a><br /></td></tr>
<tr class="separator:a5b597069e5d3263ea82f23e76aa7c249"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a011d24d44de701a71315583d044f6742"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a011d24d44de701a71315583d044f6742">getBooleanAttribute</a> (<a class="el" href="udat_8h.html#afb77ea9256f65ea466b4c9b73f33bbaa">UDateFormatBooleanAttribute</a> attr, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a011d24d44de701a71315583d044f6742"><td class="mdescLeft"> </td><td class="mdescRight">Returns a boolean from this <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> May return U_UNSUPPORTED_ERROR if this instance does not support the specified attribute. <a href="classicu_1_1DateFormat.html#a011d24d44de701a71315583d044f6742">More...</a><br /></td></tr>
<tr class="separator:a011d24d44de701a71315583d044f6742"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3118634b6b3042729ddfe2f2dbf7ea10"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a3118634b6b3042729ddfe2f2dbf7ea10">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a3118634b6b3042729ddfe2f2dbf7ea10"><td class="mdescLeft"> </td><td class="mdescRight">Formats an object to produce a string. <a href="classicu_1_1DateFormat.html#a3118634b6b3042729ddfe2f2dbf7ea10">More...</a><br /></td></tr>
<tr class="separator:a3118634b6b3042729ddfe2f2dbf7ea10"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add52b12300a59ee5801bda1c6c21d6a3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#add52b12300a59ee5801bda1c6c21d6a3">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const=0</td></tr>
<tr class="memdesc:add52b12300a59ee5801bda1c6c21d6a3"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> an object to produce a string. <a href="classicu_1_1DateFormat.html#add52b12300a59ee5801bda1c6c21d6a3">More...</a><br /></td></tr>
<tr class="separator:add52b12300a59ee5801bda1c6c21d6a3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a04c0b274f048825e08296cd22d0dd4fb"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a04c0b274f048825e08296cd22d0dd4fb">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a04c0b274f048825e08296cd22d0dd4fb"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> an object to produce a string. <a href="classicu_1_1DateFormat.html#a04c0b274f048825e08296cd22d0dd4fb">More...</a><br /></td></tr>
<tr class="separator:a04c0b274f048825e08296cd22d0dd4fb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classicu_1_1Format"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classicu_1_1Format')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classicu_1_1Format.html">icu::Format</a></td></tr>
<tr class="memitem:ab5b0d091d165c5576af62b3ee246058a inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#ab5b0d091d165c5576af62b3ee246058a">~Format</a> ()</td></tr>
<tr class="memdesc:ab5b0d091d165c5576af62b3ee246058a inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="classicu_1_1Format.html#ab5b0d091d165c5576af62b3ee246058a">More...</a><br /></td></tr>
<tr class="separator:ab5b0d091d165c5576af62b3ee246058a inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae1e8e16cd0803127ac506d8de257ec4f inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#ae1e8e16cd0803127ac506d8de257ec4f">operator==</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &other) const =0</td></tr>
<tr class="memdesc:ae1e8e16cd0803127ac506d8de257ec4f inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> objects are semantically equal. <a href="classicu_1_1Format.html#ae1e8e16cd0803127ac506d8de257ec4f">More...</a><br /></td></tr>
<tr class="separator:ae1e8e16cd0803127ac506d8de257ec4f inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aedcfb084bd044486e9112d6bae06556d inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#aedcfb084bd044486e9112d6bae06556d">operator!=</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &other) const</td></tr>
<tr class="memdesc:aedcfb084bd044486e9112d6bae06556d inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> objects are not semantically equal. <a href="classicu_1_1Format.html#aedcfb084bd044486e9112d6bae06556d">More...</a><br /></td></tr>
<tr class="separator:aedcfb084bd044486e9112d6bae06556d inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:affce5425b443762badff429591f18ad3 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1Format.html">Format</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#affce5425b443762badff429591f18ad3">clone</a> () const =0</td></tr>
<tr class="memdesc:affce5425b443762badff429591f18ad3 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Clone this object polymorphically. <a href="classicu_1_1Format.html#affce5425b443762badff429591f18ad3">More...</a><br /></td></tr>
<tr class="separator:affce5425b443762badff429591f18ad3 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3118634b6b3042729ddfe2f2dbf7ea10 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a3118634b6b3042729ddfe2f2dbf7ea10">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a3118634b6b3042729ddfe2f2dbf7ea10 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Formats an object to produce a string. <a href="classicu_1_1Format.html#a3118634b6b3042729ddfe2f2dbf7ea10">More...</a><br /></td></tr>
<tr class="separator:a3118634b6b3042729ddfe2f2dbf7ea10 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a53f8ed9170d8df729b4ed64514c281ba inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a53f8ed9170d8df729b4ed64514c281ba">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const =0</td></tr>
<tr class="memdesc:a53f8ed9170d8df729b4ed64514c281ba inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> an object to produce a string. <a href="classicu_1_1Format.html#a53f8ed9170d8df729b4ed64514c281ba">More...</a><br /></td></tr>
<tr class="separator:a53f8ed9170d8df729b4ed64514c281ba inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a04c0b274f048825e08296cd22d0dd4fb inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a04c0b274f048825e08296cd22d0dd4fb">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classicu_1_1FieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a04c0b274f048825e08296cd22d0dd4fb inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats.">Format</a> an object to produce a string. <a href="classicu_1_1Format.html#a04c0b274f048825e08296cd22d0dd4fb">More...</a><br /></td></tr>
<tr class="separator:a04c0b274f048825e08296cd22d0dd4fb inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a292d797eb9d3bc8a42d8d8efba119a83 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a292d797eb9d3bc8a42d8d8efba119a83">parseObject</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &source, <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &result, <a class="el" href="classicu_1_1ParsePosition.html">ParsePosition</a> &parse_pos) const =0</td></tr>
<tr class="memdesc:a292d797eb9d3bc8a42d8d8efba119a83 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Parse a string to produce an object. <a href="classicu_1_1Format.html#a292d797eb9d3bc8a42d8d8efba119a83">More...</a><br /></td></tr>
<tr class="separator:a292d797eb9d3bc8a42d8d8efba119a83 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac8854eba45f8c57f22ff994b8e8099ae inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#ac8854eba45f8c57f22ff994b8e8099ae">parseObject</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &source, <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:ac8854eba45f8c57f22ff994b8e8099ae inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Parses a string to produce an object. <a href="classicu_1_1Format.html#ac8854eba45f8c57f22ff994b8e8099ae">More...</a><br /></td></tr>
<tr class="separator:ac8854eba45f8c57f22ff994b8e8099ae inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afb8661d3a5d713adc9845c6c76de2a09 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1Locale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#afb8661d3a5d713adc9845c6c76de2a09">getLocale</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:afb8661d3a5d713adc9845c6c76de2a09 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="classicu_1_1Format.html#afb8661d3a5d713adc9845c6c76de2a09">More...</a><br /></td></tr>
<tr class="separator:afb8661d3a5d713adc9845c6c76de2a09 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7bbf0c0ae756b7d63c6184dee820ca49 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a7bbf0c0ae756b7d63c6184dee820ca49">getLocaleID</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const</td></tr>
<tr class="memdesc:a7bbf0c0ae756b7d63c6184dee820ca49 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="classicu_1_1Format.html#a7bbf0c0ae756b7d63c6184dee820ca49">More...</a><br /></td></tr>
<tr class="separator:a7bbf0c0ae756b7d63c6184dee820ca49 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classicu_1_1UObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classicu_1_1UObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classicu_1_1UObject.html">icu::UObject</a></td></tr>
<tr class="memitem:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#af10026497704f510d3d1f2eff50acb18">~UObject</a> ()</td></tr>
<tr class="memdesc:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="classicu_1_1UObject.html#af10026497704f510d3d1f2eff50acb18">More...</a><br /></td></tr>
<tr class="separator:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#aca1169c4978c52ce2b76eda104e9a214">getDynamicClassID</a> () const</td></tr>
<tr class="memdesc:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft"> </td><td class="mdescRight">ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. <a href="classicu_1_1UObject.html#aca1169c4978c52ce2b76eda104e9a214">More...</a><br /></td></tr>
<tr class="separator:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a7b4dbe2c1355922969d51c0626cab0bd"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a7b4dbe2c1355922969d51c0626cab0bd">createInstance</a> (void)</td></tr>
<tr class="memdesc:a7b4dbe2c1355922969d51c0626cab0bd"><td class="mdescLeft"> </td><td class="mdescRight">Create a default date/time formatter that uses the SHORT style for both the date and the time. <a href="classicu_1_1DateFormat.html#a7b4dbe2c1355922969d51c0626cab0bd">More...</a><br /></td></tr>
<tr class="separator:a7b4dbe2c1355922969d51c0626cab0bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afcd185ba0b4159d30e3130c2987a174f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#afcd185ba0b4159d30e3130c2987a174f">createTimeInstance</a> (<a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> style=kDefault, const <a class="el" href="classicu_1_1Locale.html">Locale</a> &aLocale=<a class="el" href="classicu_1_1Locale.html#aedc6074fab4f81bb7275e52cf5cf2f97">Locale::getDefault</a>())</td></tr>
<tr class="memdesc:afcd185ba0b4159d30e3130c2987a174f"><td class="mdescLeft"> </td><td class="mdescRight">Creates a time formatter with the given formatting style for the given locale. <a href="classicu_1_1DateFormat.html#afcd185ba0b4159d30e3130c2987a174f">More...</a><br /></td></tr>
<tr class="separator:afcd185ba0b4159d30e3130c2987a174f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a251191326a412d2da5345325dcde5c8b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b">createDateInstance</a> (<a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> style=kDefault, const <a class="el" href="classicu_1_1Locale.html">Locale</a> &aLocale=<a class="el" href="classicu_1_1Locale.html#aedc6074fab4f81bb7275e52cf5cf2f97">Locale::getDefault</a>())</td></tr>
<tr class="memdesc:a251191326a412d2da5345325dcde5c8b"><td class="mdescLeft"> </td><td class="mdescRight">Creates a date formatter with the given formatting style for the given const locale. <a href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b">More...</a><br /></td></tr>
<tr class="separator:a251191326a412d2da5345325dcde5c8b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa794841c943fc9353fd7b2853afdaaf5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#aa794841c943fc9353fd7b2853afdaaf5">createDateTimeInstance</a> (<a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> dateStyle=kDefault, <a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> timeStyle=kDefault, const <a class="el" href="classicu_1_1Locale.html">Locale</a> &aLocale=<a class="el" href="classicu_1_1Locale.html#aedc6074fab4f81bb7275e52cf5cf2f97">Locale::getDefault</a>())</td></tr>
<tr class="memdesc:aa794841c943fc9353fd7b2853afdaaf5"><td class="mdescLeft"> </td><td class="mdescRight">Creates a date/time formatter with the given formatting styles for the given locale. <a href="classicu_1_1DateFormat.html#aa794841c943fc9353fd7b2853afdaaf5">More...</a><br /></td></tr>
<tr class="separator:aa794841c943fc9353fd7b2853afdaaf5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a241a8363d7dffba9856e15b75d2dcf01"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a241a8363d7dffba9856e15b75d2dcf01">getBestPattern</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &locale, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &skeleton, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr>
<tr class="memdesc:a241a8363d7dffba9856e15b75d2dcf01"><td class="mdescLeft"> </td><td class="mdescRight">Returns the best pattern given a skeleton and locale. <a href="classicu_1_1DateFormat.html#a241a8363d7dffba9856e15b75d2dcf01">More...</a><br /></td></tr>
<tr class="separator:a241a8363d7dffba9856e15b75d2dcf01"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb1512ab46431644b5ddac9ec87f62d9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#adb1512ab46431644b5ddac9ec87f62d9">createInstanceForSkeleton</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &skeleton, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr>
<tr class="memdesc:adb1512ab46431644b5ddac9ec87f62d9"><td class="mdescLeft"> </td><td class="mdescRight">Creates a date/time formatter for the given skeleton and default locale. <a href="classicu_1_1DateFormat.html#adb1512ab46431644b5ddac9ec87f62d9">More...</a><br /></td></tr>
<tr class="separator:adb1512ab46431644b5ddac9ec87f62d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab688f79a4990fd9f31491705fa1a1c6d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ab688f79a4990fd9f31491705fa1a1c6d">createInstanceForSkeleton</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &skeleton, const <a class="el" href="classicu_1_1Locale.html">Locale</a> &locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr>
<tr class="memdesc:ab688f79a4990fd9f31491705fa1a1c6d"><td class="mdescLeft"> </td><td class="mdescRight">Creates a date/time formatter for the given skeleton and locale. <a href="classicu_1_1DateFormat.html#ab688f79a4990fd9f31491705fa1a1c6d">More...</a><br /></td></tr>
<tr class="separator:ab688f79a4990fd9f31491705fa1a1c6d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a491ae4f66afe812e24a50861a86e55e9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a491ae4f66afe812e24a50861a86e55e9">createInstanceForSkeleton</a> (<a class="el" href="classicu_1_1Calendar.html">Calendar</a> *calendarToAdopt, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &skeleton, const <a class="el" href="classicu_1_1Locale.html">Locale</a> &locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr>
<tr class="memdesc:a491ae4f66afe812e24a50861a86e55e9"><td class="mdescLeft"> </td><td class="mdescRight">Creates a date/time formatter for the given skeleton and locale. <a href="classicu_1_1DateFormat.html#a491ae4f66afe812e24a50861a86e55e9">More...</a><br /></td></tr>
<tr class="separator:a491ae4f66afe812e24a50861a86e55e9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2f8c42962a7d5ef76ee7a3e491426708"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classicu_1_1Locale.html">Locale</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a2f8c42962a7d5ef76ee7a3e491426708">getAvailableLocales</a> (int32_t &count)</td></tr>
<tr class="memdesc:a2f8c42962a7d5ef76ee7a3e491426708"><td class="mdescLeft"> </td><td class="mdescRight">Gets the set of locales for which DateFormats are installed. <a href="classicu_1_1DateFormat.html#a2f8c42962a7d5ef76ee7a3e491426708">More...</a><br /></td></tr>
<tr class="separator:a2f8c42962a7d5ef76ee7a3e491426708"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a0c83b8d083a75bcfc72aa64da0e255e0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a0c83b8d083a75bcfc72aa64da0e255e0">DateFormat</a> ()</td></tr>
<tr class="memdesc:a0c83b8d083a75bcfc72aa64da0e255e0"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="classicu_1_1DateFormat.html#a0c83b8d083a75bcfc72aa64da0e255e0">More...</a><br /></td></tr>
<tr class="separator:a0c83b8d083a75bcfc72aa64da0e255e0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b8e2cc498126e569d9173ff637fa8f1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a4b8e2cc498126e569d9173ff637fa8f1">DateFormat</a> (const <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> &)</td></tr>
<tr class="memdesc:a4b8e2cc498126e569d9173ff637fa8f1"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="classicu_1_1DateFormat.html#a4b8e2cc498126e569d9173ff637fa8f1">More...</a><br /></td></tr>
<tr class="separator:a4b8e2cc498126e569d9173ff637fa8f1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab2b898d74e14e8a6f570f2d07139adcf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#ab2b898d74e14e8a6f570f2d07139adcf">operator=</a> (const <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> &)</td></tr>
<tr class="memdesc:ab2b898d74e14e8a6f570f2d07139adcf"><td class="mdescLeft"> </td><td class="mdescRight">Default assignment operator. <a href="classicu_1_1DateFormat.html#ab2b898d74e14e8a6f570f2d07139adcf">More...</a><br /></td></tr>
<tr class="separator:ab2b898d74e14e8a6f570f2d07139adcf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_methods_classicu_1_1Format"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classicu_1_1Format')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classicu_1_1Format.html">icu::Format</a></td></tr>
<tr class="memitem:a9c316525df8bdb422d3e73f0eb9a2a32 inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a9c316525df8bdb422d3e73f0eb9a2a32">setLocaleIDs</a> (const char *valid, const char *actual)</td></tr>
<tr class="separator:a9c316525df8bdb422d3e73f0eb9a2a32 inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0e673e9e040598bace20c25a2261b845 inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a0e673e9e040598bace20c25a2261b845">Format</a> ()</td></tr>
<tr class="memdesc:a0e673e9e040598bace20c25a2261b845 inherit pro_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor for subclass use only. <a href="classicu_1_1Format.html#a0e673e9e040598bace20c25a2261b845">More...</a><br /></td></tr>
<tr class="separator:a0e673e9e040598bace20c25a2261b845 inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2747bab62f7164f3c1556c044502df6e inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a2747bab62f7164f3c1556c044502df6e">Format</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &)</td></tr>
<tr class="separator:a2747bab62f7164f3c1556c044502df6e inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9f6bbcf0021bf190244db47118f36f9f inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1Format.html">Format</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a9f6bbcf0021bf190244db47118f36f9f">operator=</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &)</td></tr>
<tr class="separator:a9f6bbcf0021bf190244db47118f36f9f inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a20321bc31518617e151eda906aaea21c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1Calendar.html">Calendar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a20321bc31518617e151eda906aaea21c">fCalendar</a></td></tr>
<tr class="memdesc:a20321bc31518617e151eda906aaea21c"><td class="mdescLeft"> </td><td class="mdescRight">The calendar that <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> uses to produce the time field values needed to implement date/time formatting. <a href="classicu_1_1DateFormat.html#a20321bc31518617e151eda906aaea21c">More...</a><br /></td></tr>
<tr class="separator:a20321bc31518617e151eda906aaea21c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2aac78cfe705679f0059162145e5e3dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a2aac78cfe705679f0059162145e5e3dc">fNumberFormat</a></td></tr>
<tr class="memdesc:a2aac78cfe705679f0059162145e5e3dc"><td class="mdescLeft"> </td><td class="mdescRight">The number formatter that <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> uses to format numbers in dates and times. <a href="classicu_1_1DateFormat.html#a2aac78cfe705679f0059162145e5e3dc">More...</a><br /></td></tr>
<tr class="separator:a2aac78cfe705679f0059162145e5e3dc"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a9df97521aee735b43a122904f878b5d7"><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1DateFormat.html#a9df97521aee735b43a122904f878b5d7">DateFmtKeyByStyle</a></td></tr>
<tr class="separator:a9df97521aee735b43a122904f878b5d7"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_static_methods_classicu_1_1Format"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_classicu_1_1Format')"><img src="closed.png" alt="-"/> Static Protected Member Functions inherited from <a class="el" href="classicu_1_1Format.html">icu::Format</a></td></tr>
<tr class="memitem:a4667230f833245c55ba081c163d8bb71 inherit pro_static_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a4667230f833245c55ba081c163d8bb71">syntaxError</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &pattern, int32_t pos, <a class="el" href="structUParseError.html">UParseError</a> &parseError)</td></tr>
<tr class="memdesc:a4667230f833245c55ba081c163d8bb71 inherit pro_static_methods_classicu_1_1Format"><td class="mdescLeft"> </td><td class="mdescRight">Simple function for initializing a <a class="el" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors.">UParseError</a> from a <a class="el" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>. <a href="classicu_1_1Format.html#a4667230f833245c55ba081c163d8bb71">More...</a><br /></td></tr>
<tr class="separator:a4667230f833245c55ba081c163d8bb71 inherit pro_static_methods_classicu_1_1Format"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p ><a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> is an abstract class for a family of classes that convert dates and times from their internal representations to textual form and back again in a language-independent manner. </p>
<p >Converting from the internal representation (milliseconds since midnight, January 1, 1970) to text is known as "formatting," and converting from text to millis is known as "parsing." We currently define only one concrete subclass of <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a>: <a class="el" href="classicu_1_1SimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manne...">SimpleDateFormat</a>, which can handle pretty much all normal date formatting and parsing actions. </p>
<p ><a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> helps you to format and parse dates for any locale. Your code can be completely independent of the locale conventions for months, days of the week, or even the calendar format: lunar vs. solar. </p>
<p >To format a date for the current <a class="el" href="classicu_1_1Locale.html" title="A Locale object represents a specific geographical, political, or cultural region.">Locale</a>, use one of the static factory methods: </p><pre>
<div class="fragment"><div class="line"><a class="code hl_class" href="classicu_1_1DateFormat.html">DateFormat</a>* dfmt = <a class="code hl_function" href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b">DateFormat::createDateInstance</a>();</div>
<div class="line"><a class="code hl_typedef" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> myDate = <a class="code hl_function" href="classicu_1_1Calendar.html#abd72cd8a3a8fd6052e21f80528a0dd34">Calendar::getNow</a>();</div>
<div class="line"><a class="code hl_class" href="classicu_1_1UnicodeString.html">UnicodeString</a> myString;</div>
<div class="line">myString = dfmt-><a class="code hl_function" href="classicu_1_1DateFormat.html#a7b8700bfb9a9bca2bd03481107f53627">format</a>( myDate, myString );</div>
<div class="ttc" id="aclassicu_1_1Calendar_html_abd72cd8a3a8fd6052e21f80528a0dd34"><div class="ttname"><a href="classicu_1_1Calendar.html#abd72cd8a3a8fd6052e21f80528a0dd34">icu::Calendar::getNow</a></div><div class="ttdeci">static UDate getNow(void)</div><div class="ttdoc">Returns the current UTC (GMT) time measured in milliseconds since 0:00:00 on 1/1/70 (derived from the...</div></div>
<div class="ttc" id="aclassicu_1_1DateFormat_html"><div class="ttname"><a href="classicu_1_1DateFormat.html">icu::DateFormat</a></div><div class="ttdoc">DateFormat is an abstract class for a family of classes that convert dates and times from their inter...</div><div class="ttdef"><b>Definition:</b> <a href="datefmt_8h_source.html#l00156">datefmt.h:156</a></div></div>
<div class="ttc" id="aclassicu_1_1DateFormat_html_a251191326a412d2da5345325dcde5c8b"><div class="ttname"><a href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b">icu::DateFormat::createDateInstance</a></div><div class="ttdeci">static DateFormat * createDateInstance(EStyle style=kDefault, const Locale &aLocale=Locale::getDefault())</div><div class="ttdoc">Creates a date formatter with the given formatting style for the given const locale.</div></div>
<div class="ttc" id="aclassicu_1_1DateFormat_html_a7b8700bfb9a9bca2bd03481107f53627"><div class="ttname"><a href="classicu_1_1DateFormat.html#a7b8700bfb9a9bca2bd03481107f53627">icu::DateFormat::format</a></div><div class="ttdeci">virtual UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const override</div><div class="ttdoc">Format an object to produce a string.</div></div>
<div class="ttc" id="aclassicu_1_1UnicodeString_html"><div class="ttname"><a href="classicu_1_1UnicodeString.html">icu::UnicodeString</a></div><div class="ttdoc">UnicodeString is a string class that stores Unicode characters directly and provides similar function...</div><div class="ttdef"><b>Definition:</b> <a href="unistr_8h_source.html#l00295">unistr.h:296</a></div></div>
<div class="ttc" id="autypes_8h_html_ace1704e9e77d407d1eaaa2e73ec0c039"><div class="ttname"><a href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a></div><div class="ttdeci">double UDate</div><div class="ttdoc">Date and Time data type.</div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00203">utypes.h:203</a></div></div>
</div><!-- fragment -->
</pre><p> If you are formatting multiple numbers, it is more efficient to get the format and use it multiple times so that the system doesn't have to fetch the information about the local language and country conventions multiple times. </p><pre>
<div class="fragment"><div class="line"><a class="code hl_class" href="classicu_1_1DateFormat.html">DateFormat</a>* df = <a class="code hl_function" href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b">DateFormat::createDateInstance</a>();</div>
<div class="line"><a class="code hl_class" href="classicu_1_1UnicodeString.html">UnicodeString</a> myString;</div>
<div class="line"><a class="code hl_typedef" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> myDateArr[] = { 0.0, 100000000.0, 2000000000.0 }; <span class="comment">// test values</span></div>
<div class="line"><span class="keywordflow">for</span> (int32_t i = 0; i < 3; ++i) {</div>
<div class="line"> myString.<a class="code hl_function" href="classicu_1_1UnicodeString.html#ae8cf3e80a226d11aec56fd51b2b79d77">remove</a>();</div>
<div class="line"> cout << df-><a class="code hl_function" href="classicu_1_1DateFormat.html#a7b8700bfb9a9bca2bd03481107f53627">format</a>( myDateArr[i], myString ) << endl;</div>
<div class="line">}</div>
<div class="ttc" id="aclassicu_1_1UnicodeString_html_ae8cf3e80a226d11aec56fd51b2b79d77"><div class="ttname"><a href="classicu_1_1UnicodeString.html#ae8cf3e80a226d11aec56fd51b2b79d77">icu::UnicodeString::remove</a></div><div class="ttdeci">UnicodeString & remove()</div><div class="ttdoc">Removes all characters from the UnicodeString object and clears the bogus flag.</div><div class="ttdef"><b>Definition:</b> <a href="unistr_8h_source.html#l04723">unistr.h:4723</a></div></div>
</div><!-- fragment -->
</pre><p> To get specific fields of a date, you can use <a class="el" href="structUFieldPosition.html" title="A struct representing a range of text containing a specific field.">UFieldPosition</a> to get specific fields. </p><pre>
<div class="fragment"><div class="line"><a class="code hl_class" href="classicu_1_1DateFormat.html">DateFormat</a>* dfmt = <a class="code hl_function" href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b">DateFormat::createDateInstance</a>();</div>
<div class="line"><a class="code hl_class" href="classicu_1_1FieldPosition.html">FieldPosition</a> pos(DateFormat::YEAR_FIELD);</div>
<div class="line"><a class="code hl_class" href="classicu_1_1UnicodeString.html">UnicodeString</a> myString;</div>
<div class="line">myString = dfmt-><a class="code hl_function" href="classicu_1_1DateFormat.html#a7b8700bfb9a9bca2bd03481107f53627">format</a>( myDate, myString );</div>
<div class="line">cout << myString << endl;</div>
<div class="line">cout << pos.getBeginIndex() << <span class="stringliteral">","</span> << pos. getEndIndex() << endl;</div>
<div class="ttc" id="aclassicu_1_1FieldPosition_html"><div class="ttname"><a href="classicu_1_1FieldPosition.html">icu::FieldPosition</a></div><div class="ttdoc">FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...</div><div class="ttdef"><b>Definition:</b> <a href="fieldpos_8h_source.html#l00110">fieldpos.h:110</a></div></div>
</div><!-- fragment -->
</pre><p> To format a date for a different <a class="el" href="classicu_1_1Locale.html" title="A Locale object represents a specific geographical, political, or cultural region.">Locale</a>, specify it in the call to <a class="el" href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b" title="Creates a date formatter with the given formatting style for the given const locale.">createDateInstance()</a>. </p><pre>
<div class="fragment"><div class="line"><a class="code hl_class" href="classicu_1_1DateFormat.html">DateFormat</a>* df =</div>
<div class="line"> <a class="code hl_function" href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b">DateFormat::createDateInstance</a>( DateFormat::SHORT, <a class="code hl_function" href="classicu_1_1Locale.html#a9e7c0a3e826c4f59fb4189bbff91cc6f">Locale::getFrance</a>());</div>
<div class="ttc" id="aclassicu_1_1Locale_html_a9e7c0a3e826c4f59fb4189bbff91cc6f"><div class="ttname"><a href="classicu_1_1Locale.html#a9e7c0a3e826c4f59fb4189bbff91cc6f">icu::Locale::getFrance</a></div><div class="ttdeci">static const Locale & getFrance(void)</div><div class="ttdoc">Useful constant for this country/region.</div></div>
</div><!-- fragment -->
</pre><p> You can use a <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> to parse also. </p><pre>
<div class="fragment"><div class="line"><a class="code hl_enumeration" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> status = <a class="code hl_enumvalue" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;</div>
<div class="line"><a class="code hl_typedef" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039">UDate</a> myDate = df-><a class="code hl_function" href="classicu_1_1DateFormat.html#a088aa13d607c682cc435d4152613cfc1">parse</a>(myString, status);</div>
<div class="ttc" id="aclassicu_1_1DateFormat_html_a088aa13d607c682cc435d4152613cfc1"><div class="ttname"><a href="classicu_1_1DateFormat.html#a088aa13d607c682cc435d4152613cfc1">icu::DateFormat::parse</a></div><div class="ttdeci">virtual UDate parse(const UnicodeString &text, UErrorCode &status) const</div><div class="ttdoc">Parse a date/time string.</div></div>
<div class="ttc" id="autypes_8h_html_a3343c1c8a8377277046774691c98d78c"><div class="ttname"><a href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a></div><div class="ttdeci">UErrorCode</div><div class="ttdoc">Standard ICU4C error code type, a substitute for exceptions.</div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00415">utypes.h:415</a></div></div>
<div class="ttc" id="autypes_8h_html_a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9"><div class="ttname"><a href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a></div><div class="ttdeci">@ U_ZERO_ERROR</div><div class="ttdoc">No error, no warning.</div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00449">utypes.h:449</a></div></div>
</div><!-- fragment -->
</pre><p> Use <a class="el" href="classicu_1_1DateFormat.html#a251191326a412d2da5345325dcde5c8b" title="Creates a date formatter with the given formatting style for the given const locale.">createDateInstance()</a> to produce the normal date format for that country. There are other static factory methods available. Use <a class="el" href="classicu_1_1DateFormat.html#afcd185ba0b4159d30e3130c2987a174f" title="Creates a time formatter with the given formatting style for the given locale.">createTimeInstance()</a> to produce the normal time format for that country. Use <a class="el" href="classicu_1_1DateFormat.html#aa794841c943fc9353fd7b2853afdaaf5" title="Creates a date/time formatter with the given formatting styles for the given locale.">createDateTimeInstance()</a> to produce a <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> that formats both date and time. You can pass in different options to these factory methods to control the length of the result; from SHORT to MEDIUM to LONG to FULL. The exact result depends on the locale, but generally: </p><ul type="round">
<li>
SHORT is completely numeric, such as 12/13/52 or 3:30pm </li>
<li>
MEDIUM is longer, such as Jan 12, 1952 </li>
<li>
LONG is longer, such as January 12, 1952 or 3:30:32pm </li>
<li>
FULL is pretty completely specified, such as Tuesday, April 12, 1952 AD or 3:30:42pm PST. </li>
</ul>
<p>You can also set the time zone on the format if you wish. If you want even more control over the format or parsing, (or want to give your users more control), you can try casting the <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> you get from the factory methods to a <a class="el" href="classicu_1_1SimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent manne...">SimpleDateFormat</a>. This will work for the majority of countries; just remember to check <a class="el" href="classicu_1_1UObject.html#aca1169c4978c52ce2b76eda104e9a214" title="ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.">getDynamicClassID()</a> before carrying out the cast. </p>
<p >You can also use forms of the parse and format methods with <a class="el" href="classicu_1_1ParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...">ParsePosition</a> and <a class="el" href="classicu_1_1FieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...">FieldPosition</a> to allow you to </p><ul type="round">
<li>
Progressively parse through pieces of a string. </li>
<li>
Align any particular field, or find out where it is for selection on the screen. </li>
</ul>
<p ><em>User subclasses are not supported.</em> While clients may write subclasses, such code will not necessarily work and will not be guaranteed to work stably from release to release. </p>
<p class="definition">Definition at line <a class="el" href="datefmt_8h_source.html#l00156">156</a> of file <a class="el" href="datefmt_8h_source.html">datefmt.h</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ad13e430a9697228c96ca1f350b3d9317" name="ad13e430a9697228c96ca1f350b3d9317"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad13e430a9697228c96ca1f350b3d9317">◆ </a></span>EField</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classicu_1_1DateFormat.html#ad13e430a9697228c96ca1f350b3d9317">icu::DateFormat::EField</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Field selector for <a class="el" href="classicu_1_1FieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...">FieldPosition</a> for <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> fields. </p>
<dl class="obsolete"><dt><b><a class="el" href="obsolete.html#_obsolete000001">Obsolete:</a></b></dt><dd>ICU 3.4 use UDateFormatField instead, since this API will be removed in that release </dd></dl>
<p class="definition">Definition at line <a class="el" href="datefmt_8h_source.html#l00912">912</a> of file <a class="el" href="datefmt_8h_source.html">datefmt.h</a>.</p>
</div>
</div>
<a id="ac24ea2d479ab818437dedb3470800dc7" name="ac24ea2d479ab818437dedb3470800dc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac24ea2d479ab818437dedb3470800dc7">◆ </a></span>EStyle</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">icu::DateFormat::EStyle</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constants for various style patterns. </p>
<p >These reflect the order of items in the DateTimePatterns resource. There are 4 time patterns, 4 date patterns, the default date-time pattern, and 4 date-time patterns. Each block of 4 values in the resource occurs in the order full, long, medium, short. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable003754">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ac24ea2d479ab818437dedb3470800dc7ab4dbd844bad9434716ae812fc012784e" name="ac24ea2d479ab818437dedb3470800dc7ab4dbd844bad9434716ae812fc012784e"></a>FULL </td><td class="fielddoc"><p >These constants are provided for backwards compatibility only. </p>
<p >Please use the C++ style constants defined above. </p>
</td></tr>
</table>
<p class="definition">Definition at line <a class="el" href="datefmt_8h_source.html#l00166">166</a> of file <a class="el" href="datefmt_8h_source.html">datefmt.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a1833e0e0e49a4bf63f35c4534afc20bd" name="a1833e0e0e49a4bf63f35c4534afc20bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1833e0e0e49a4bf63f35c4534afc20bd">◆ </a></span>~DateFormat()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual icu::DateFormat::~DateFormat </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003755">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</div>
</div>
<a id="a0c83b8d083a75bcfc72aa64da0e255e0" name="a0c83b8d083a75bcfc72aa64da0e255e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c83b8d083a75bcfc72aa64da0e255e0">◆ </a></span>DateFormat() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">icu::DateFormat::DateFormat </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Default constructor. </p>
<p >Creates a <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> with no <a class="el" href="classicu_1_1Calendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...">Calendar</a> or <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> associated with it. This constructor depends on the subclasses to fill in the calendar and numberFormat fields. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable003794">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</div>
</div>
<a id="a4b8e2cc498126e569d9173ff637fa8f1" name="a4b8e2cc498126e569d9173ff637fa8f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b8e2cc498126e569d9173ff637fa8f1">◆ </a></span>DateFormat() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">icu::DateFormat::DateFormat </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> & </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Copy constructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003795">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad2b7aabafbfdc5661ff80bb29f1c5a6b" name="ad2b7aabafbfdc5661ff80bb29f1c5a6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2b7aabafbfdc5661ff80bb29f1c5a6b">◆ </a></span>adoptCalendar()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void icu::DateFormat::adoptCalendar </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1Calendar.html">Calendar</a> * </td>
<td class="paramname"><em>calendarToAdopt</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the calendar to be used by this date format. </p>
<p >Initially, the default calendar for the specified or default locale is used. The caller should not delete the <a class="el" href="classicu_1_1Calendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...">Calendar</a> object after it is adopted by this call. Adopting a new calendar will change to the default symbols.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">calendarToAdopt</td><td><a class="el" href="classicu_1_1Calendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...">Calendar</a> object to be adopted. </td></tr>
</table>
</dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003782">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
<p>Reimplemented in <a class="el" href="classicu_1_1SimpleDateFormat.html#aa516e475dd1bd93dafb165ca51ecc7ea">icu::SimpleDateFormat</a>.</p>
</div>
</div>
<a id="a6ffd07d528e81bdafd6ca956ff1b2f1e" name="a6ffd07d528e81bdafd6ca956ff1b2f1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ffd07d528e81bdafd6ca956ff1b2f1e">◆ </a></span>adoptNumberFormat()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void icu::DateFormat::adoptNumberFormat </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> * </td>
<td class="paramname"><em>formatToAdopt</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Allows you to set the number formatter. </p>
<p >The caller should not delete the <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> object after it is adopted by this call. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">formatToAdopt</td><td><a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> object to be adopted. </td></tr>
</table>
</dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003785">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
<p>Reimplemented in <a class="el" href="classicu_1_1SimpleDateFormat.html#a6aa9212004cc17d5ee28ff916d0a3e73">icu::SimpleDateFormat</a>.</p>
</div>
</div>
<a id="ad9e9021ee3c6f771410d91fd0a323542" name="ad9e9021ee3c6f771410d91fd0a323542"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9e9021ee3c6f771410d91fd0a323542">◆ </a></span>adoptTimeZone()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void icu::DateFormat::adoptTimeZone </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1TimeZone.html">TimeZone</a> * </td>
<td class="paramname"><em>zoneToAdopt</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the time zone for the calendar of this <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> object. </p>
<p >The caller no longer owns the <a class="el" href="classicu_1_1TimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> object and should not delete it after this call. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">zoneToAdopt</td><td>the <a class="el" href="classicu_1_1TimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a> to be adopted. </td></tr>
</table>
</dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003788">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</div>
</div>
<a id="abb4706c2fb1fbf5827e24cc2ba13ab37" name="abb4706c2fb1fbf5827e24cc2ba13ab37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb4706c2fb1fbf5827e24cc2ba13ab37">◆ </a></span>clone()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * icu::DateFormat::clone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Clones this object polymorphically. </p>
<p >The caller owns the result and should delete it when done. </p><dl class="section return"><dt>Returns</dt><dd>clone, or nullptr if an error occurred </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003756">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
<p>Implements <a class="el" href="classicu_1_1Format.html#affce5425b443762badff429591f18ad3">icu::Format</a>.</p>
<p>Implemented in <a class="el" href="classicu_1_1SimpleDateFormat.html#a808cd0e1a6f8b2c4a44d994fd74f6a1e">icu::SimpleDateFormat</a>.</p>
</div>
</div>
<a id="a251191326a412d2da5345325dcde5c8b" name="a251191326a412d2da5345325dcde5c8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a251191326a412d2da5345325dcde5c8b">◆ </a></span>createDateInstance()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * icu::DateFormat::createDateInstance </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> </td>
<td class="paramname"><em>style</em> = <code>kDefault</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> & </td>
<td class="paramname"><em>aLocale</em> = <code><a class="el" href="classicu_1_1Locale.html#aedc6074fab4f81bb7275e52cf5cf2f97">Locale::getDefault</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a date formatter with the given formatting style for the given const locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">style</td><td>The given formatting style. For example, SHORT for "M/d/yy" in the US locale. As currently implemented, relative date formatting only affects a limited range of calendar days before or after the current date, based on the CLDR <field type="day">/<relative> data: For example, in English, "Yesterday", "Today", and "Tomorrow". Outside of this range, dates are formatted using the corresponding non-relative style. </td></tr>
<tr><td class="paramname">aLocale</td><td>The given locale. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A date formatter which the caller owns. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003771">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</div>
</div>
<a id="aa794841c943fc9353fd7b2853afdaaf5" name="aa794841c943fc9353fd7b2853afdaaf5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa794841c943fc9353fd7b2853afdaaf5">◆ </a></span>createDateTimeInstance()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * icu::DateFormat::createDateTimeInstance </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> </td>
<td class="paramname"><em>dateStyle</em> = <code>kDefault</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classicu_1_1DateFormat.html#ac24ea2d479ab818437dedb3470800dc7">EStyle</a> </td>
<td class="paramname"><em>timeStyle</em> = <code>kDefault</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> & </td>
<td class="paramname"><em>aLocale</em> = <code><a class="el" href="classicu_1_1Locale.html#aedc6074fab4f81bb7275e52cf5cf2f97">Locale::getDefault</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a date/time formatter with the given formatting styles for the given locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">dateStyle</td><td>The given formatting style for the date portion of the result. For example, SHORT for "M/d/yy" in the US locale. As currently implemented, relative date formatting only affects a limited range of calendar days before or after the current date, based on the CLDR <field type="day">/<relative> data: For example, in English, "Yesterday", "Today", and "Tomorrow". Outside of this range, dates are formatted using the corresponding non-relative style. </td></tr>
<tr><td class="paramname">timeStyle</td><td>The given formatting style for the time portion of the result. For example, SHORT for "h:mm a" in the US locale. Relative time styles are not currently supported. </td></tr>
<tr><td class="paramname">aLocale</td><td>The given locale. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A date/time formatter which the caller owns. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003772">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</div>
</div>
<a id="a7b4dbe2c1355922969d51c0626cab0bd" name="a7b4dbe2c1355922969d51c0626cab0bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b4dbe2c1355922969d51c0626cab0bd">◆ </a></span>createInstance()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * icu::DateFormat::createInstance </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a default date/time formatter that uses the SHORT style for both the date and the time. </p>
<dl class="section return"><dt>Returns</dt><dd>A date/time formatter which the caller owns. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003769">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>
</div>
</div>
<a id="a491ae4f66afe812e24a50861a86e55e9" name="a491ae4f66afe812e24a50861a86e55e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a491ae4f66afe812e24a50861a86e55e9">◆ </a></span>createInstanceForSkeleton() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * icu::DateFormat::createInstanceForSkeleton </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classicu_1_1Calendar.html">Calendar</a> * </td>
<td class="paramname"><em>calendarToAdopt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td>
<td class="paramname"><em>skeleton</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> & </td>
<td class="paramname"><em>locale</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td>
<td class="paramname"><em>status</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a date/time formatter for the given skeleton and locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">calendarToAdopt</td><td>the calendar returned <a class="el" href="classicu_1_1DateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times from their inter...">DateFormat</a> is to use. </td></tr>
<tr><td class="paramname">skeleton</td><td>The skeleton e.g "yMMMMd." Fields in the skeleton can be in any order, and this method uses the locale to map the skeleton to a pattern that includes locale specific separators with the fields in the appropriate order for that locale. </td></tr>
<tr><td class="paramname">locale</td><td>The given locale. </td></tr>
<tr><td class="paramname">status</td><td>Any error returned here. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A date/time formatter which the caller owns. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003775">Stable:</a></b></dt><dd>ICU 55 </dd></dl>
</div>
</div>
<a id="ab688f79a4990fd9f31491705fa1a1c6d" name="ab688f79a4990fd9f31491705fa1a1c6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab688f79a4990fd9f31491705fa1a1c6d">◆ </a></span>createInstanceForSkeleton() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classicu_1_1DateFormat.html">DateFormat</a> * icu::DateFormat::createInstanceForSkeleton </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td>
<td class="paramname"><em>skeleton</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> & </td>
<td class="paramname"><em>locale</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td>
<td class="paramname"><em>status</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a date/time formatter for the given skeleton and locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">skeleton</td><td>The skeleton e.g "yMMMMd." Fields in the skeleton can be in any order, and this method uses the locale to map the skeleton to a pattern that includes locale specific separators with the fields in the appropriate order for that locale. </td></tr>
<tr><td class="paramname">locale</td><td>The given locale. </td></tr>
<tr><td class="paramname">status</td><td>Any error returned here. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A date/time formatter which the caller owns. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003774">Stable:</a></b></dt><dd>ICU 55 </dd></dl>
</div>
</div>
<a id="adb1512ab46431644b5ddac9ec87f62d9" name="adb1512ab46431644b5ddac9ec87f62d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb1512ab46431644b5ddac9ec87f62d9">◆ </a></span>createInstanceForSkeleton() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>