1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.dateformat;
20
21 import java.util.Date;
22 import java.util.Locale;
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 public class DateFormatSymbols
40 {
41 String[] eras = {"BC", "AD"};
42
43 String[] months = {
44 "January", "February", "March", "April",
45 "May", "June", "July", "August", "September", "October",
46 "November", "December", "Undecimber"
47 };
48
49 String[] shortMonths = {
50 "Jan", "Feb", "Mar", "Apr",
51 "May", "Jun", "Jul", "Aug", "Sep", "Oct",
52 "Nov", "Dec", "Und"
53 };
54
55 String[] weekdays = {
56 "Sunday", "Monday", "Tuesday",
57 "Wednesday", "Thursday", "Friday", "Saturday"
58 };
59
60 String[] shortWeekdays = {
61 "Sun", "Mon", "Tue",
62 "Wed", "Thu", "Fri", "Sat"
63 };
64
65 String[] ampms = { "AM", "PM" };
66
67 String[] zoneStrings = {
68 null, "long-name", "short-name"
69 };
70
71
72 Date threshold;
73 Date twoDigitYearStart;
74
75
76 public DateFormatSymbols()
77 {
78 threshold = new Date();
79 threshold.setYear(threshold.getYear()-80);
80 this.twoDigitYearStart = threshold;
81 }
82
83 public DateFormatSymbols(Locale l)
84 {
85 this();
86
87 java.text.DateFormatSymbols src = new java.text.DateFormatSymbols(l);
88 this.eras = src.getEras();
89 this.months = src.getMonths();
90 this.shortMonths = src.getShortMonths();
91 this.weekdays = src.getWeekdays();
92 this.shortWeekdays = src.getShortWeekdays();
93 this.ampms = src.getAmPmStrings();
94
95
96 }
97 }