Searched defs:calendar (Results 1 - 25 of 62) sorted by relevance

123

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
H A DPersianTest.java7 package com.ibm.icu.dev.test.calendar;
77 Calendar cal = Calendar.getInstance(new ULocale("fa_IR@calendar=persian"));
H A DTestAll.java7 package com.ibm.icu.dev.test.calendar;
11 * Top level test used to run all other calendar tests as a batch.
H A DChineseTestCase.java7 package com.ibm.icu.dev.test.calendar;
16 * the corresponding fields for the calendar being tested.
18 * @param era the ERA field of tested calendar on the given Julian
20 * @param year the YEAR field of tested calendar on the given
22 * @param month the MONTH (1-based) field of tested calendar on
25 * @param dayOfMonth the DAY_OF_MONTH field of tested calendar on the
27 * @param dayOfWeek the DAY_OF_WEEK field of tested calendar on given
H A DAstroTest.java7 package com.ibm.icu.dev.test.calendar;
H A DJapaneseTest.java7 package com.ibm.icu.dev.test.calendar;
147 ULocale loc = new ULocale("ja_JP@calendar=japanese");
149 DateFormat enjformat = cal.getDateTimeFormat(0,0,new ULocale("en_JP@calendar=japanese"));
175 SimpleDateFormat fmt2 = new SimpleDateFormat("HH:mm:ss.S MMMM d, yyyy G", new ULocale("en_US@calendar=gregorian"));
207 SimpleDateFormat fmt = (SimpleDateFormat)c.getDateTimeFormat(1,1,new ULocale("en_US@calendar=japanese"));
210 //SimpleDateFormat fmt = new SimpleDateFormat("G y", new Locale("en_US@calendar=japanese"));
277 // Test calendar with incomplete information
364 * Test limits of the Japanese calendar
H A DDangiTest.java7 package com.ibm.icu.dev.test.calendar;
72 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi"));
132 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi"));
163 Calendar dangi = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi"));
172 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi"));
263 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi"));
308 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi"));
339 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi"));
402 // If the chinese calendar current millis isn't called, the default year is wrong.
407 Calendar cc = Calendar.getInstance(new ULocale("ko_KR@calendar
[all...]
H A DDataDrivenCalendarTest.java7 package com.ibm.icu.dev.test.calendar;
31 super("com/ibm/icu/dev/data/testdata/", "calendar");
72 // Is the calendar sane at the first?
76 +", SOURCE calendar was not set: Differences: "+ diffs);
78 logln("PASS: "+thisString+" SOURCE calendar match.");
81 //logln("Set Source calendar: " + from);
86 // Is the calendar sane after being set?
90 +", SET SOURCE calendar was not set: Differences: "+ diffs);
92 logln("PASS: "+thisString+" SET SOURCE calendar match.");
115 // build to calendar
[all...]
H A DHolidayTest.java7 package com.ibm.icu.dev.test.calendar;
141 // Stash away a few useful constants for this calendar and display
167 // calendar cell contains a given date.
H A DIndianTest.java7 package com.ibm.icu.dev.test.calendar;
29 // Months in indian calendar are 0-based. Here taking 1-based names:
45 * http://www.fourmilab.ch/documents/calendar/
48 * work properly for a wide range of data in the Indian civil calendar.
220 logln("gregorian calendar: " + gDF.format(gToday) +
229 logln("Indian calendar: " + iDF.format(iToday) +
235 * Test limits of the Indian calendar
254 // Instantiate an Indian calendar.
255 ULocale locale = ULocale.US.setKeywordValue("calendar", "indian");
261 errln("Incorrect calendar valu
[all...]
H A DChineseTest.java6 package com.ibm.icu.dev.test.calendar;
253 * Note: This test assumes that Chinese calendar formatted dates can be parsed
255 * currently true since Chinese calendar formatted dates do not include an era.
257 * associated calendar, as per ICU ticket #9043. This test should be timebombed
622 // returns an instance of ChineseDateFormat. Chinese calendar formatting support was
637 // logln("chinese calendar time: " + time + " result: " + str + " --> " + e);
639 // logln(ex.getMessage()); // chinese calendar can't parse this, no error for now
651 logln("Chinese calendar time: " + time2 + " result: " + str2);
678 // if the chinese calendar current millis isn't called, the default year is wrong.
H A DCopticTest.java7 package com.ibm.icu.dev.test.calendar;
61 * From the Calendrica applet: http://emr.cs.iit.edu/home/reingold/calendar-book/Calendrica.html
92 * work properly for a wide range of data in the civil calendar.
171 // eventually should modify to use locale strings and formatter appropriate to coptic calendar
204 * Test limits of the Coptic calendar
342 logln("gregorian calendar: " + gDF.format(gToday) +
351 logln("coptic calendar: " + cDF.format(cToday) +
361 logln("ethiopic calendar: " + eDF.format(eToday) +
H A DEthiopicTest.java7 package com.ibm.icu.dev.test.calendar;
86 * From the Calendrica applet: http://emr.cs.iit.edu/home/reingold/calendar-book/Calendrica.html
116 * work properly for a wide range of data in the civil calendar.
137 /* Skip these tests until JD bug fixed in the Gregorian calendar:
186 /* Skip these tests until JD bug fixed in the Gregorian calendar:
231 // eventually should modify to use locale strings and formatter appropriate to coptic calendar
243 // The gregorian calendar gets off by two days when
287 * Test limits of the Coptic calendar
366 // operations on non-civil calendar
370 errln("EthiopicCalendar calendar i
[all...]
H A DHebrewTest.java8 package com.ibm.icu.dev.test.calendar;
210 // http://www.fourmilab.com/documents/calendar/
233 * field in a Hebrew calendar causes the time fields to go negative.
237 HebrewCalendar calendar = new HebrewCalendar(5761, 0, 11, 12, 28, 15);
238 calendar.set(Calendar.YEAR, 5717);
239 calendar.set(Calendar.MONTH, 2);
240 calendar.set(Calendar.DAY_OF_MONTH, 23);
241 if (calendar.get(Calendar.HOUR_OF_DAY) != 12) {
242 errln("Fail: HebrewCalendar HOUR_OF_DAY = " + calendar.get(Calendar.HOUR_OF_DAY));
251 * in which setting of the MONTH field in a Hebrew calendar t
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/util/
H A DJmeFormatter.java49 private Date calendar = new Date(); field in class:JmeFormatter
64 calendar.setTime(record.getMillis());
65 args[0] = calendar;
/external/fonttools/Lib/fontTools/ttLib/tables/
H A DF_F_T_M_.py7 import calendar namespace
43 value = calendar.timegm(time.strptime(value)) - mac_epoch_diff
H A D_h_e_a_d.py7 import calendar namespace
72 value = calendar.timegm(time.strptime(value)) - mac_epoch_diff
81 mac_epoch_diff = calendar.timegm((1904, 1, 1, 0, 0, 0, 0, 0, 0))
/external/fonttools/Tools/fontTools/ttLib/tables/
H A DF_F_T_M_.py7 import calendar namespace
43 value = calendar.timegm(time.strptime(value)) - mac_epoch_diff
H A D_h_e_a_d.py7 import calendar namespace
72 value = calendar.timegm(time.strptime(value)) - mac_epoch_diff
81 mac_epoch_diff = calendar.timegm((1904, 1, 1, 0, 0, 0, 0, 0, 0))
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DHeaderParser.java47 * @return an integer with the calendar content for wkday.
131 protected void time(Calendar calendar) throws ParseException { argument
135 calendar.set(Calendar.HOUR_OF_DAY, hour);
139 calendar.set(Calendar.MINUTE, min);
143 calendar.set(Calendar.SECOND, sec);
/external/chromium-trace/trace-viewer/third_party/WebOb/webob/
H A Ddatetime_utils.py1 import calendar namespace
89 dt = calendar.timegm(dt)
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DSimpleDateRule.java43 this.calendar = cal;
118 Calendar c = calendar;
147 Calendar c = calendar;
219 // calendar = c;
224 private Calendar calendar = gCalendar; field in class:SimpleDateRule
H A DEasterHoliday.java53 * or Orthodox calendar.
56 * @param orthodox Use the Orthodox calendar?
156 calendar = orthodox;
182 synchronized(calendar) {
183 calendar.setTime(date);
184 int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR);
186 calendar.setTime(computeInYear(calendar.getTime(), calendar));
188 return calendar
289 private GregorianCalendar calendar = gregorian; field in class:EasterRule
[all...]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
H A DXMPDateTimeFactory.java43 * @param calendar a <code>Calendar</code>-object.
46 public static XMPDateTime createFromCalendar(Calendar calendar) argument
48 return new XMPDateTimeImpl(calendar);
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DXMPDateTimeImpl.java23 * The implementation of <code>XMPDateTime</code>. Internally a <code>calendar</code> is used
46 * The nano seconds take micro and nano seconds, while the milli seconds are in the calendar.
62 * Creates an <code>XMPDateTime</code>-instance from a calendar.
64 * @param calendar a <code>Calendar</code>
66 public XMPDateTimeImpl(Calendar calendar) argument
68 // extract the date and timezone from the calendar provided
69 Date date = calendar.getTime();
70 TimeZone zone = calendar.getTimeZone();
72 // put that date into a calendar the pretty much represents ISO8601
100 GregorianCalendar calendar
[all...]
/external/chromium-trace/trace-viewer/perf_insights/third_party/cloudstorage/
H A Dcommon.py43 import calendar namespace
368 return calendar.timegm(dt.utctimetuple())

Completed in 3424 milliseconds

123