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

12

/external/chromium_org/media/tools/layout_tests/
H A Dtest_expectations_history_unittest.py8 import calendar namespace
42 ptime = calendar.timegm((2011, 8, 20, 0, 0, 0, 0, 0, 0))
43 ctime = calendar.timegm((2011, 8, 21, 0, 0, 0, 0, 0, 0))
51 ptime = calendar.timegm((2011, 8, 20, 6, 0, 0, 0, 0, 0))
52 ctime = calendar.timegm((2011, 8, 20, 7, 0, 0, 0, 0, 0))
60 ptime = calendar.timegm((2011, 9, 12, 1, 0, 0, 0, 0, 0))
61 ctime = calendar.timegm((2011, 9, 12, 2, 0, 0, 0, 0, 0))
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/
H A Dsheriff_calendar_unittest.py11 import sheriff_calendar as calendar namespace
18 self.assertEqual(map(calendar._complete_email, names), expected_emails)
22 calendar._emails_from_url = lambda urls: expected_emails
23 self.assertEqual(calendar.current_gardener_emails(), expected_emails)
26 self.assertEqual(calendar._names_from_sheriff_js(js_string), expected_emails)
33 self.assertTrue(calendar._email_is_valid('somebody@example.com'))
34 self.assertTrue(calendar._email_is_valid('somebody@example.domain.com'))
35 self.assertTrue(calendar._email_is_valid('somebody@example-domain.com'))
36 self.assertTrue(calendar._email_is_valid('some.body@example.com'))
37 self.assertTrue(calendar
[all...]
/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_org/third_party/WebKit/Tools/GardeningServer/
H A Dalerts.py5 import calendar namespace
20 return calendar.timegm(obj.timetuple())
/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_org/third_party/google_appengine_cloudstorage/cloudstorage/
H A Dcommon.py42 import calendar namespace
348 return calendar.timegm(dt.utctimetuple())
/external/chromium_org/v8/src/
H A Di18n.cc9 #include "unicode/calendar.h"
82 // since calendar takes ownership.
91 // Create a calendar using locale, and apply time zone to it.
93 icu::Calendar* calendar = local
111 date_format->adoptCalendar(calendar);
116 delete calendar;
141 // Set time zone and calendar.
142 const icu::Calendar* calendar = date_format->getCalendar(); local
143 const char* calendar_name = calendar->getType();
144 JSObject::SetProperty(resolved, factory->NewStringFromStaticChars("calendar"),
[all...]
/external/chromium_org/third_party/icu/source/i18n/
H A Dudat.cpp20 #include "unicode/calendar.h"
271 UCalendar* calendar,
285 ((DateFormat*)format)->parse(src, *(Calendar*)calendar, pp);
270 udat_parseCalendar(const UDateFormat* format, UCalendar* calendar, const UChar* text, int32_t textLength, int32_t *parsePos, UErrorCode *status) argument
H A Ducal.cpp16 #include "unicode/calendar.h"
153 uloc_setKeywordValue("calendar", "gregorian", localeBuf, ULOC_LOCALE_IDENTIFIER_CAPACITY, status);
501 ucal_clear(UCalendar* calendar) argument
504 ((Calendar*)calendar)->clear();
682 // Read preferred calendar values from supplementalData calendarPreference
691 // Create a list of calendar type strings
H A Dsmpdtfmt.cpp37 #include "unicode/calendar.h"
170 * For example, the calendar stores zero-based month numbers
212 // When calendar uses hebr numbering (i.e. he@calendar=hebrew),
543 // We will need the calendar to know what type of symbols to load.
741 SimpleDateFormat::initializeSymbols(const Locale& locale, Calendar* calendar, UErrorCode& status) argument
746 // pass in calendar type - use NULL (default) if no calendar set (or err).
747 fSymbols = new DateFormatSymbols(locale, calendar?calendar
[all...]
/external/icu/icu4c/source/i18n/
H A Dudat.cpp20 #include "unicode/calendar.h"
274 UCalendar* calendar,
288 ((DateFormat*)format)->parse(src, *(Calendar*)calendar, pp);
273 udat_parseCalendar(const UDateFormat* format, UCalendar* calendar, const UChar* text, int32_t textLength, int32_t *parsePos, UErrorCode *status) argument
H A Ducal.cpp16 #include "unicode/calendar.h"
153 uloc_setKeywordValue("calendar", "gregorian", localeBuf, ULOC_LOCALE_IDENTIFIER_CAPACITY, status);
501 ucal_clear(UCalendar* calendar) argument
504 ((Calendar*)calendar)->clear();
682 // Read preferred calendar values from supplementalData calendarPreference
691 // Create a list of calendar type strings
H A Dsmpdtfmt.cpp37 #include "unicode/calendar.h"
172 * For example, the calendar stores zero-based month numbers
215 // When calendar uses hebr numbering (i.e. he@calendar=hebrew),
554 // We will need the calendar to know what type of symbols to load.
752 SimpleDateFormat::initializeSymbols(const Locale& locale, Calendar* calendar, UErrorCode& status) argument
757 // pass in calendar type - use NULL (default) if no calendar set (or err).
758 fSymbols = new DateFormatSymbols(locale, calendar?calendar
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/
H A D__init__.py41 import calendar namespace
312 date = calendar.timegm(email.Utils.parsedate_tz(response_headers['date']))
325 freshness_lifetime = max(0, calendar.timegm(expires) - date)
609 if service == 'xapi' and request_uri.find("calendar") > 0:
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Dcdattst.c360 log_err("FAIL: Error in setting and getting the calendar\n");
362 log_verbose("PASS: getting and setting calendar successful\n");
829 /* Create a calendar */
901 UCalendar* calendar = 0; local
929 calendar = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &ec);
930 ucal_setMillis(calendar, 0, &ec);
931 ucal_setDateTime(calendar, twoDigitCenturyStart, UCAL_JANUARY, 1, 0, 0, 0, &ec);
933 udat_parseCalendar(simpleDateFormat, calendar, text, u_strlen(text), &parsePos, &ec);
936 result = ucal_get(calendar, UCAL_YEAR, &ec);
949 udat_parseCalendar(simpleDateFormat, calendar, tex
[all...]
/external/chromium_org/third_party/icu/source/test/intltest/
H A Dcaltest.cpp571 cal = Calendar::createInstance(Locale("he_IL@calendar=hebrew"), status);
579 Calendar::getKeywordValuesForLocale("calendar", Locale("he"), FALSE, status));
1288 Calendar *calendar = new GregorianCalendar(status); local
1290 calendar->set(1993, UCAL_JANUARY, 4);
1291 logln("1A) " + value(calendar));
1292 calendar->add(UCAL_DATE, 1, status);
1294 UnicodeString v = value(calendar);
1298 delete calendar;
1301 Calendar *calendar = new GregorianCalendar(1993, UCAL_JANUARY, 4, status); local
1303 logln("2A) " + value(calendar));
1313 Calendar *calendar = new GregorianCalendar(1993, UCAL_JANUARY, 4, status); local
1331 value(Calendar* calendar) argument
1353 GregorianCalendar *calendar = 0; local
[all...]
H A Dcalregts.cpp333 Calendar *calendar = new GregorianCalendar(pdt, status); local
338 calendar->set(UCAL_MONTH,3);
339 calendar->set(UCAL_DATE,18);
340 calendar->set(UCAL_SECOND, 30);
342 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status));
344 calendar->get(UCAL_DATE, status));
345 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status));
346 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status));
348 calendar->add(UCAL_SECOND,6, status);
352 logln(UnicodeString("MONTH: ") + calendar
1538 GregorianCalendar *calendar = new GregorianCalendar(status); local
1572 GregorianCalendar *calendar = new GregorianCalendar(status); local
1611 GregorianCalendar *calendar = new GregorianCalendar(status); local
1642 GregorianCalendar *calendar = new GregorianCalendar(status); local
1696 GregorianCalendar *calendar = new GregorianCalendar(zones[i], status); local
1800 GregorianCalendar *calendar = new GregorianCalendar(1996, UCAL_FEBRUARY, 29, status); local
1855 GregorianCalendar *calendar = new GregorianCalendar(Locale::getUS(), status); local
1922 GregorianCalendar *calendar = calendars[j]; local
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dcdattst.c360 log_err("FAIL: Error in setting and getting the calendar\n");
362 log_verbose("PASS: getting and setting calendar successful\n");
829 /* Create a calendar */
901 UCalendar* calendar = 0; local
929 calendar = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &ec);
930 ucal_setMillis(calendar, 0, &ec);
931 ucal_setDateTime(calendar, twoDigitCenturyStart, UCAL_JANUARY, 1, 0, 0, 0, &ec);
933 udat_parseCalendar(simpleDateFormat, calendar, text, u_strlen(text), &parsePos, &ec);
936 result = ucal_get(calendar, UCAL_YEAR, &ec);
949 udat_parseCalendar(simpleDateFormat, calendar, tex
[all...]
/external/icu/icu4c/source/test/intltest/
H A Dcaltest.cpp592 cal = Calendar::createInstance(Locale("he_IL@calendar=hebrew"), status);
600 Calendar::getKeywordValuesForLocale("calendar", Locale("he"), FALSE, status));
1309 Calendar *calendar = new GregorianCalendar(status); local
1311 calendar->set(1993, UCAL_JANUARY, 4);
1312 logln("1A) " + value(calendar));
1313 calendar->add(UCAL_DATE, 1, status);
1315 UnicodeString v = value(calendar);
1319 delete calendar;
1322 Calendar *calendar = new GregorianCalendar(1993, UCAL_JANUARY, 4, status); local
1324 logln("2A) " + value(calendar));
1334 Calendar *calendar = new GregorianCalendar(1993, UCAL_JANUARY, 4, status); local
1352 value(Calendar* calendar) argument
1374 GregorianCalendar *calendar = 0; local
[all...]
H A Dcalregts.cpp333 Calendar *calendar = new GregorianCalendar(pdt, status); local
338 calendar->set(UCAL_MONTH,3);
339 calendar->set(UCAL_DATE,18);
340 calendar->set(UCAL_SECOND, 30);
342 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status));
344 calendar->get(UCAL_DATE, status));
345 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status));
346 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status));
348 calendar->add(UCAL_SECOND,6, status);
352 logln(UnicodeString("MONTH: ") + calendar
1538 GregorianCalendar *calendar = new GregorianCalendar(status); local
1572 GregorianCalendar *calendar = new GregorianCalendar(status); local
1611 GregorianCalendar *calendar = new GregorianCalendar(status); local
1642 GregorianCalendar *calendar = new GregorianCalendar(status); local
1696 GregorianCalendar *calendar = new GregorianCalendar(zones[i], status); local
1800 GregorianCalendar *calendar = new GregorianCalendar(1996, UCAL_FEBRUARY, 29, status); local
1855 GregorianCalendar *calendar = new GregorianCalendar(Locale::getUS(), status); local
1922 GregorianCalendar *calendar = calendars[j]; local
[all...]

Completed in 785 milliseconds

12