KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > datetime > names > EnglishNames


1 package jodd.datetime.names;
2
3 /**
4  * Default (English) names for JDateTime.
5  */

6 public final class EnglishNames implements jodd.datetime.JdtNames {
7
8     private final String[] month = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
9     public String[] getMonths() {
10         return month;
11     }
12
13     private final String[] month_s = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
14     public String[] getShortMonths() {
15         return month_s;
16     }
17
18     private final String[] weekday = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
19     public String[] getDaysOfWeek() {
20         return weekday;
21     }
22
23     private final String[] weekday_s = { "Mon", "Tue", "Wed", "Thu","Fri", "Sat", "Sun" };
24     public String[] getShortDaysOfWeek() {
25         return weekday_s;
26     }
27
28 }
29
Popular Tags