Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 820) sorted by relevance

12345678910>>...33

/external/bluetooth/glib/glib/
Dgdate.h127 void g_date_free (GDate *date);
134 gboolean g_date_valid (const GDate *date);
144 GDateWeekday g_date_get_weekday (const GDate *date);
145 GDateMonth g_date_get_month (const GDate *date);
146 GDateYear g_date_get_year (const GDate *date);
147 GDateDay g_date_get_day (const GDate *date);
148 guint32 g_date_get_julian (const GDate *date);
149 guint g_date_get_day_of_year (const GDate *date);
156 guint g_date_get_monday_week_of_year (const GDate *date);
157 guint g_date_get_sunday_week_of_year (const GDate *date);
[all …]
/external/v8/src/
Ddate.js96 function MakeDay(year, month, date) { argument
97 if (!$isFinite(year) || !$isFinite(month) || !$isFinite(date)) return $NaN;
102 date = TO_INTEGER_MAP_MINUS_ZERO(date);
110 return %DateMakeDay(year, month) + date - 1;
145 %SetCode($Date, function(year, month, date, hours, minutes, seconds, ms) { argument
189 date = argc > 2 ? ToNumber(date) : 1;
197 var day = MakeDay(year, month, date);
218 function DateString(date) { argument
219 return WeekDays[LOCAL_WEEKDAY(date)] + ' '
220 + Months[LOCAL_MONTH(date)] + ' '
[all …]
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DSupport_SimpleDateFormat.java55 Date date = cal.getTime(); in t_format_with_FieldPosition() local
75 t_FormatWithField(0, format, date, null, Field.ERA, 0, 2); in t_format_with_FieldPosition()
76 t_FormatWithField(1, format, date, null, Field.YEAR, 15, 17); in t_format_with_FieldPosition()
77 t_FormatWithField(2, format, date, null, Field.MONTH, 26, 27); in t_format_with_FieldPosition()
78 t_FormatWithField(3, format, date, null, Field.DAY_OF_MONTH, 45, 47); in t_format_with_FieldPosition()
79 t_FormatWithField(4, format, date, null, Field.HOUR_OF_DAY1, 55, 57); in t_format_with_FieldPosition()
80 t_FormatWithField(5, format, date, null, Field.HOUR_OF_DAY0, 65, 67); in t_format_with_FieldPosition()
81 t_FormatWithField(6, format, date, null, Field.HOUR1, 75, 76); in t_format_with_FieldPosition()
82 t_FormatWithField(7, format, date, null, Field.MINUTE, 84, 86); in t_format_with_FieldPosition()
83 t_FormatWithField(8, format, date, null, Field.SECOND, 91, 92); in t_format_with_FieldPosition()
[all …]
DSimpleDateFormatTest.java94 String expected2, Date date) { in verifyFormatTimezone() argument
98 format.format(date)); in verifyFormatTimezone()
102 format.format(date)); in verifyFormatTimezone()
552 Date date = f1.get2DigitYearStart(); in test_get2DigitYearStart() local
555 cal.setTime(date); in test_get2DigitYearStart()
712 Date date = df.parse(output); in test_parseLjava_lang_StringLjava_text_ParsePosition() local
713 assertTrue("Invalid result 1: " + date, d.equals(date)); in test_parseLjava_lang_StringLjava_text_ParsePosition()
717 date = df.parse(output); in test_parseLjava_lang_StringLjava_text_ParsePosition()
718 assertTrue("Invalid result 2: " + date, d.equals(date)); in test_parseLjava_lang_StringLjava_text_ParsePosition()
722 date = df.parse(output); in test_parseLjava_lang_StringLjava_text_ParsePosition()
[all …]
/external/v8/test/mjsunit/regress/
Dregress-91.js28 var date = new Date(); variable
29 var year = date.getYear();
30 date.setMilliseconds(Number.NaN);
31 date.setYear(1900 + year);
32 assertEquals(year, date.getYear());
33 assertEquals(0, date.getMonth());
34 assertEquals(1, date.getDate());
35 assertEquals(0, date.getHours());
36 assertEquals(0, date.getMinutes());
37 assertEquals(0, date.getSeconds());
[all …]
/external/chromium/base/
Dtime_mac.cc64 CFGregorianDate date; in FromExploded() local
65 date.second = exploded.second + in FromExploded()
67 date.minute = exploded.minute; in FromExploded()
68 date.hour = exploded.hour; in FromExploded()
69 date.day = exploded.day_of_month; in FromExploded()
70 date.month = exploded.month; in FromExploded()
71 date.year = exploded.year; in FromExploded()
75 CFAbsoluteTime seconds = CFGregorianDateGetAbsoluteTime(date, time_zone) + in FromExploded()
88 CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(seconds, time_zone); in Explode() local
90 exploded->year = date.year; in Explode()
[all …]
/external/webkit/Source/WebCore/html/
DMonthInputType.cpp61 DateComponents date; in valueAsDate() local
62 if (!parseToDateComponents(element()->value(), &date)) in valueAsDate()
64 double msec = date.millisecondsSinceEpoch(); in valueAsDate()
71 DateComponents date; in setValueAsDate() local
72 if (!date.setMillisecondsSinceEpochForMonth(value)) { in setValueAsDate()
76 element()->setValue(date.toString()); in setValueAsDate()
87 DateComponents date; in defaultValueForStepUp() local
88 date.setMillisecondsSinceEpochForMonth(current); in defaultValueForStepUp()
89 double months = date.monthsSinceEpoch(); in defaultValueForStepUp()
121 DateComponents date; in parseToDouble() local
[all …]
DBaseDateAndTimeInputType.cpp142 DateComponents date; in parseToDouble() local
143 if (!parseToDateComponents(src, &date)) in parseToDouble()
145 double msec = date.millisecondsSinceEpoch(); in parseToDouble()
164 DateComponents date; in serialize() local
165 if (!setMillisecondToDateComponents(value, &date)) in serialize()
169 return date.toString(); in serialize()
171 return date.toString(DateComponents::None); in serialize()
173 return date.toString(DateComponents::Second); in serialize()
174 return date.toString(DateComponents::Millisecond); in serialize()
DTimeInputType.cpp67 DateComponents date; in defaultValueForStepUp() local
68 date.setMillisecondsSinceMidnight(current); in defaultValueForStepUp()
69 double milliseconds = date.millisecondsSinceEpoch(); in defaultValueForStepUp()
106 bool TimeInputType::setMillisecondToDateComponents(double value, DateComponents* date) const in setMillisecondToDateComponents()
108 ASSERT(date); in setMillisecondToDateComponents()
109 return date->setMillisecondsSinceMidnight(value); in setMillisecondToDateComponents()
/external/clang/test/Analysis/
DCFDateGC.m40 CFDateRef date = CFDateCreate(0, t);
41 CFRetain(date);
42 [NSMakeCollectable(date) release];
43 CFDateGetAbsoluteTime(date); // no-warning
44 CFRelease(date);
45 …t = CFDateGetAbsoluteTime(date); // expected-warning{{Reference-counted object is used after it …
53 CFDateRef date = CFDateCreate(0, t);
54 CFRetain(date);
55 [(id) CFMakeCollectable(date) release];
56 CFDateGetAbsoluteTime(date); // no-warning
[all …]
/external/nist-sip/java/gov/nist/javax/sip/header/
DSIPDateHeader.java52 protected SIPDate date; field in SIPDateHeader
64 return date.encode(); in encodeBody()
72 date = d; in setDate()
83 date = new SIPDate(dat.getTime().getTime()); in setDate()
93 if (date == null) in getDate()
95 return date.getJavaCal(); in getDate()
100 if (this.date != null) in clone()
101 retval.date = (SIPDate) this.date.clone(); in clone()
/external/webkit/LayoutTests/http/tests/cookies/script-tests/
Dsimple-cookies-expired.js8 var date = new Date(); variable
9 date.setTime(date.getTime() + 60 * 1000);
10 cookiesShouldBe("test=foobar; Expires=" + date.toGMTString(), "test=foobar");
14 date.setTime(date.getTime() - 2 * 60 * 1000);
15 cookiesShouldBe("test2=foobar; Expires=" + date.toGMTString(), "");
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
DX509CertificateTest.java166 Date date = new Date(); in testCheckValidity1() local
172 date.compareTo(na_date) > 0); in testCheckValidity1()
174 date.compareTo(nb_date) < 0); in testCheckValidity1()
177 date.compareTo(na_date) > 0); in testCheckValidity1()
180 date.compareTo(nb_date) < 0); in testCheckValidity1()
193 Date[] date = new Date[4]; in testCheckValidity2() local
195 for (int i=0; i<date.length; i++) { in testCheckValidity2()
197 date[i] = calendar.getTime(); in testCheckValidity2()
201 for (int i=0; i<date.length; i++) { in testCheckValidity2()
203 tbt_cert.checkValidity(date[i]); in testCheckValidity2()
[all …]
/external/icu4c/samples/date/
Dreadme.txt2 icudate: a sample program which displays the current date
5 Formatting a date
10 date.c Main source file
13 date.sln Windows MSVC workspace. Double-click this to get started.
14 date.vcproj Windows MSVC project file
18 2. In MSVC, open the workspace file icu\samples\date\date.sln
28 cd c:\icu\source\samples\date\debug
29 4. Run it (Warning: Be careful, 'date' is also a system command on many systems)
30 .\date
45 cd <icu directory>/source/samples/date
[all …]
/external/icu4c/i18n/
Ddatefmt.cpp118 UDate date = 0; in format() local
122 date = obj.getDate(); in format()
125 date = (UDate)obj.getDouble(); in format()
128 date = (UDate)obj.getLong(); in format()
139 return format(date, appendTo, fieldPosition); in format()
153 UDate date = 0; in format() local
157 date = obj.getDate(); in format()
160 date = (UDate)obj.getDouble(); in format()
163 date = (UDate)obj.getLong(); in format()
174 return format(date, appendTo, posIter, status); in format()
[all …]
Dtzfmt.cpp35 UnicodeString& format(UTimeZoneFormatStyle style, const TimeZone& tz, UDate date,
48 …UnicodeString& formatGeneric(const TimeZone& tz, UTimeZoneGenericNameType genType, UDate date, Uni…
51 UDate date, UnicodeString& name, UTimeZoneTimeType *timeType) const;
122 TimeZoneFormatImpl::format(UTimeZoneFormatStyle style, const TimeZone& tz, UDate date, in format() argument
129 formatGeneric(tz, UTZGNM_LOCATION, date, name); in format()
132 formatGeneric(tz, UTZGNM_LONG, date, name); in format()
135 formatGeneric(tz, UTZGNM_SHORT, date, name); in format()
138 formatSpecific(tz, UTZNM_LONG_STANDARD, UTZNM_LONG_DAYLIGHT, date, name, timeType); in format()
141 formatSpecific(tz, UTZNM_SHORT_STANDARD, UTZNM_SHORT_DAYLIGHT, date, name, timeType); in format()
144 …(tz, UTZNM_SHORT_STANDARD_COMMONLY_USED, UTZNM_SHORT_DAYLIGHT_COMMONLY_USED, date, name, timeType); in format()
[all …]
/external/bluetooth/glib/tests/
Dtestglib.c1279 GTimeVal ref_date, date; in various_string_tests() local
1324 g_assert (g_time_val_from_iso8601 (REF_INVALID1, &date) == FALSE); in various_string_tests()
1325 g_assert (g_time_val_from_iso8601 (REF_INVALID2, &date) == FALSE); in various_string_tests()
1326 g_assert (g_time_val_from_iso8601 (REF_STR_UTC, &date) != FALSE); in various_string_tests()
1329 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec, in various_string_tests()
1330 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec); in various_string_tests()
1331 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec); in various_string_tests()
1333 g_assert (g_time_val_from_iso8601 (REF_STR_CEST, &date) != FALSE); in various_string_tests()
1336 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec, in various_string_tests()
1337 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec); in various_string_tests()
[all …]
/external/v8/test/mjsunit/
Dto_number_order.js61 var date = { valueOf: function() { x += 3; return 4; } }; variable
68 new Date(year, month, date, hours, minutes, seconds, ms);
73 Date(year, month, date, hours, minutes, seconds, ms);
77 Date.UTC(year, month, date, hours, minutes, seconds, ms);
110 new Date().setDate(date, hours, minutes, seconds, ms);
114 new Date().setUTCDate(date, hours, minutes, seconds, ms);
118 new Date().setMonth(month, date, hours, minutes, seconds, ms);
122 new Date().setUTCMonth(month, date, hours, minutes, seconds, ms);
126 new Date().setFullYear(year, month, date, hours, minutes, seconds, ms);
130 new Date().setUTCFullYear(year, month, date, hours, minutes, seconds, ms);
/external/icu4c/test/intltest/
Dloctest.cpp1329 UDate mydate = date(98,3,13); // A Monday in Test4139940()
1356 LocaleTest::date(int32_t y, int32_t m, int32_t d, int32_t hr, int32_t min, int32_t sec) in date() function in LocaleTest
2216 UDate date = uprv_getUTCtime(); in TestCurrencyByDate() local
2223 date = (UDate)-630720000000.0; // pre 1961 - no currency defined in TestCurrencyByDate()
2224 index = ucurr_countCurrencies("eo_AM", date, &status); in TestCurrencyByDate()
2229 resLen = ucurr_forLocaleAndDate("eo_AM", date, index, TMP, 4, &status); in TestCurrencyByDate()
2235 date = (UDate)0.0; // 1970 - one currency defined in TestCurrencyByDate()
2236 index = ucurr_countCurrencies("eo_AM", date, &status); in TestCurrencyByDate()
2241 resLen = ucurr_forLocaleAndDate("eo_AM", date, index, TMP, 4, &status); in TestCurrencyByDate()
2248 date = (UDate)693792000000.0; // 1992 - one currency defined in TestCurrencyByDate()
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/
D15.9.4.3.js34 this.date = 0;
41 function utc( year, month, date, hours, minutes, seconds, ms ) { argument
47 if (date)
48 d.date = Number(date);
62 if (isNaN(month) || isNaN(year) || isNaN(date) || isNaN(hours) ||
66 d.date = Number.NaN;
77 d.day = MakeDay( d.year, d.month, d.date );
/external/webkit/Source/WebKit/chromium/src/
DWebIDBKey.cpp58 WebIDBKey WebIDBKey::createDate(double date) in createDate() argument
61 key.assignDate(date); in createDate()
106 void WebIDBKey::assignDate(double date) in assignDate() argument
108 m_private = IDBKey::createDate(date); in assignDate()
138 double WebIDBKey::date() const in date() function in WebKit::WebIDBKey
140 return m_private->date(); in date()
/external/libxml2/
Dxmlschemastypes.c121 xmlSchemaValDate date; member
1163 dt->type,dt->value.date.year,dt->value.date.mon, \
1164 dt->value.date.day,dt->value.date.hour,dt->value.date.min, \
1165 dt->value.date.sec); \
1166 if (dt->value.date.tz_flag) \
1167 if (dt->value.date.tzo != 0) \
1169 "%+05d\n",dt->value.date.tzo); \
1555 ret = _xmlSchemaParseTimeZone(&(dt->value.date), &cur); \ in xmlSchemaValidateDates()
1589 ret = _xmlSchemaParseGDay(&(dt->value.date), &cur); in xmlSchemaValidateDates()
1601 ret = _xmlSchemaParseGMonth(&(dt->value.date), &cur); in xmlSchemaValidateDates()
[all …]
/external/bluetooth/glib/debian/
Dbuild19 my @date = localtime;
21 my $datestr = sprintf("%d%.2d%.2d", $date[5] + 1900, $date[4] + 1, $date[3]);
/external/webkit/Source/JavaScriptCore/runtime/
DDateConversion.cpp58 double parseDate(ExecState* exec, const UString &date) in parseDate() argument
60 if (date == exec->globalData().cachedDateString) in parseDate()
62 double value = parseES5DateFromNullTerminatedCharacters(date.utf8().data()); in parseDate()
64 value = parseDateFromNullTerminatedCharacters(exec, date.utf8().data()); in parseDate()
65 exec->globalData().cachedDateString = date; in parseDate()
/external/chromium/chrome/browser/resources/shared/js/cr/
Dlocale.js91 formatDate: function(date, spec) { argument
136 case 'a': return fmt(strings.dayShort[date.getDay()]);
137 case 'b': return fmt(strings.monthShort[date.getMonth()]);
138 case 'd': return fmt(date.getDate(), 2);
139 case 'Y': return date.getFullYear();

12345678910>>...33