/external/chromium/third_party/icu/source/test/intltest/ |
dtifmtts.cpp | 224 dataerrln("ERROR: format non-date-interval object should set U_ILLEGAL_ARGUMENT_ERROR - exitting"); 235 dataerrln("ERROR: format date interval failed - exitting"); 247 dataerrln("ERROR: format date interval failed - exitting"); 275 // first item is date pattern 288 // test skeleton with both date and time 875 UDate date = ref.parse(ctou(datestr), ec); local 981 UDate date = ref.parse(ctou(datestr), ec); local 1143 UDate date = ref.parse(ctou(datestr), ec); local [all...] |
/external/icu4c/i18n/ |
windtfmt.cpp | 80 // Get proper date time format 169 UnicodeString *date = new UnicodeString(); local 174 formatDate(&st_local, *date); 178 timeDateArray[1].adoptString(date);
|
zonemeta.cpp | 112 * Convert a date string used by metazone mappings to UDate. 179 UDate date = Grego::fieldsToDay(year, month - 1, day) * U_MILLIS_PER_DAY local 181 return date; 358 ZoneMeta::getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result) { 364 if (mzm->from <= date && mzm->to > date) {
|
/external/icu4c/test/intltest/ |
dtfmtrtts.cpp | 96 UDate date[] = {-55018555891590.05, 0, 0}; local 99 fmt.format(date[0], result[0]); 100 date[1] = fmt.parse(result[0], status); 101 fmt.format(date[1], result[1]); 102 date[2] = fmt.parse(result[1], status); 104 /* This test case worked OK by accident before. date[1] != date[0], 106 * (date[0] is in year 1926, date[1] is in year 2026.) result[1] set 109 * America/Los_Angeles. When this is parsed, date[1] becomes a tim [all...] |
dtifmtts.cpp | 224 dataerrln("ERROR: format non-date-interval object should set U_ILLEGAL_ARGUMENT_ERROR - exitting"); 235 dataerrln("ERROR: format date interval failed - exitting"); 247 dataerrln("ERROR: format date interval failed - exitting"); 293 // first item is date pattern 306 // test skeleton with both date and time 963 UDate date = ref.parse(ctou(datestr), ec); local 1072 UDate date = ref.parse(ctou(datestr), ec); local 1234 UDate date = ref.parse(ctou(datestr), ec); local [all...] |
/external/webkit/WebCore/platform/network/ |
ResourceResponseBase.cpp | 255 DEFINE_STATIC_LOCAL(const AtomicString, dateHeader, ("date")); 365 // This handles all date formats required by RFC2616: 375 double ResourceResponseBase::date() const function in class:WebCore::ResourceResponseBase 380 DEFINE_STATIC_LOCAL(const AtomicString, headerName, ("date"));
|
/frameworks/base/core/java/android/util/ |
CalendarUtils.java | 144 * Formats a date or a time range according to the local conventions. 146 * This formats a date/time range using Calendar's time zone and the 157 * @return a string containing the formatted date/time range. 161 String date; local 170 date = DateUtils.formatDateRange(context, mF, startMillis, endMillis, flags, 173 return date;
|
/libcore/luni/src/main/java/java/net/ |
HttpCookie.java | 24 import java.util.Date; 79 * If we fail to parse a date in a non-standard format, try each of these formats in sequence. 362 Date date = parseHttpDate(value); local 363 if (date != null) { 364 cookie.setExpires(date); 383 private Date parseHttpDate(String value) { 661 private void setExpires(Date expires) {
|
/libcore/luni/src/main/java/java/security/cert/ |
PKIXParameters.java | 25 import java.util.Date; 50 private Date date; field in class:PKIXParameters 330 public Date getDate() { 331 return date == null ? null : (Date)date.clone(); 338 * @param date 342 public void setDate(Date date) { [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
DateTest.java | 26 import java.util.Date; 31 @TestTargetClass(Date.class) 35 * @tests java.util.Date#Date() 40 method = "Date", 44 // Test for method java.util.Date() 48 long now = new Date().getTime(); 49 assertTrue("Created incorrect date: " + oldTime + " now: " + now, 54 * @tests java.util.Date#Date(int, int, int 71 Date date = new Date(99, 5, 22); local [all...] |
SimpleTimeZoneTest.java | 26 import java.util.Date; 469 * @tests java.util.SimpleTimeZone#inDaylightTime(java.util.Date) 475 args = {java.util.Date.class} 479 // java.util.SimpleTimeZone.inDaylightTime(java.util.Date) 494 Date date = new Date(gc.getTime().getTime() + 1000); local 496 .inDaylightTime(date)); 500 date = new Date(gc.getTime().getTime() - 1000) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
DeleteEventHelper.java | 320 Time date = new Time(); local 322 date.timezone = Time.TIMEZONE_UTC; 324 date.set(mStartMillis); 325 date.second--; 326 date.normalize(false); 330 date.switchTimezone(Time.TIMEZONE_UTC); 331 eventRecurrence.until = date.format2445();
|
MonthActivity.java | 108 StringBuffer date = new StringBuffer(Utils.formatMonthYear(this, time)); local 118 date.append(" (").append(Utils.formatDateRange(this, start, start, flags)).append(" ") 122 title.setText(date.toString());
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
Rfc822Output.java | 44 import java.util.Date; 57 // In MIME, en_US-like date format should be used. In other words "MMM" should be encoded to 131 String date = DATE_FORMAT.format(new Date(message.mTimeStamp)); local 132 writeHeader(writer, "Date", date);
|
/packages/apps/Email/tests/src/com/android/exchange/adapter/ |
EmailSyncAdapterTests.java | 80 String date = adapter.formatDateTime(calendar); local 81 assertEquals("2008-12-11T18:19:20.000Z", date); 84 date = adapter.formatDateTime(calendar); 85 assertEquals("2012-01-02T23:00:01.000Z", date);
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
SendTransaction.java | 100 // Update the 'date' field of the PDU right before sending it. 101 long date = System.currentTimeMillis() / 1000L; local 102 sendReq.setDate(date); 104 // Persist the new date value into database. 106 values.put(Mms.DATE, date);
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
DownloadAdapter.java | 42 import java.util.Date; 120 Date date = new Date(mCursor.getLong(mDateColumnId)); local 121 if (date.before(getStartOfToday())) { 122 return mDateFormat.format(date); 124 return mTimeFormat.format(date); 128 private Date getStartOfToday() {
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/ |
DisplayLog.java | 94 // get the date. 100 String date = String.format("%1$tF %1$tT", c); local 113 logValue(date, pidName, eventName, description.getName(), value, 116 logValue(date, pidName, eventName, description.getName(), e.getMessage(), 148 // get the date. 154 String date = String.format("%1$tF %1$tT", c); local 161 logDescriptor(event, descriptor, date, pidName, eventName, logParser); 164 // we display the event. Since the StringBuilder contains the header (date, event name, 181 * @param date 189 private void logValue(String date, String pid, String event, String valueName [all...] |
/system/core/init/ |
bootchart.c | 130 char date[32]; local 133 strftime(date, sizeof(date), "%x %X", &now); 152 fprintf(out, "title = Boot chart for Android ( %s )\n", date);
|
/bionic/libc/bionic/ |
time64.c | 203 Time64_T timegm64(const struct TM *date) { 207 Year orig_year = (Year)date->tm_year; 238 days += julian_days_by_month[IS_LEAP(orig_year)][date->tm_mon]; 239 days += date->tm_mday - 1; 243 seconds += date->tm_hour * 60 * 60; 244 seconds += date->tm_min * 60; 245 seconds += date->tm_sec; 493 struct TM date; local 502 /* Have to make the year safe in date else it won't fit in safe_date */ 503 date = *input_date 771 struct TM date; local [all...] |
/cts/tools/host/src/com/android/cts/ |
HostUtils.java | 38 import java.util.Date; 256 * @param separator The separator between the date information and time information. 257 * @param dateSeparator The date separator separating the date information nibbles. 267 int date = cal.get(Calendar.DATE); local 287 fmt.format(formatStr, year, month, date, hour, min, sec); 314 public static Date dateFromString(String s) throws ParseException { 318 public static String dateToString(Date d) {
|
/external/chromium/base/third_party/nspr/ |
prtime.cc | 42 * NSPR date and time functions 170 // Date was possibly too far in the future and would overflow. Return 171 // the most future date possible (year 2038). 174 // Date was possibly too far in the past and would underflow. Return 175 // the most past date possible (year 1901). 484 * This parses a time/date string into a PRTime 487 * if the time/date string can't be parsed. 527 int date = -1; local [all...] |
/external/nist-sip/java/gov/nist/javax/sip/header/ |
SIPDate.java | 40 * when specified as a Date value. 43 *14.18 Date 45 * The Date general-header field represents the date and time at which 46 * the message was originated, having the same semantics as orig-date in 47 * RFC 822. The field value is an HTTP-date, as described in section 48 * 3.3.1; it MUST be sent in RFC 1123 [8]-date format. 50 * Date = "Date" ":" HTTP-date 171 java.util.Date date = new java.util.Date(timeMillis); local [all...] |
/external/webkit/WebKitTools/Scripts/webkitpy/ |
scm_unittest.py | 40 from datetime import date namespace 144 git_failure_message="Merge conflict during commit: Your file or directory 'WebCore/ChangeLog' is probably out-of-date: resource out of date; try updating at /usr/local/libexec/git-core//git-svn line 469" 146 svn: File or directory 'ChangeLog' is out of date; try updating 147 svn: resource out of date; try updating 291 # svn-apply will update ChangeLog entries with today's date. 292 return changelog_entry.replace('DATE_HERE', date.today().isoformat())
|
/libcore/luni/src/main/java/java/util/ |
Date.java | 29 * {@code Date} represents a specific moment in time, to the millisecond. 37 public class Date implements Serializable, Cloneable, Comparable<Date> { 42 private static int creationYear = new Date().getYear(); 47 * Initializes this {@code Date} instance to the current time. 49 public Date() { 54 * Constructs a new {@code Date} initialized to midnight in the default {@code TimeZone} on 55 * the specified date. 68 public Date(int year, int month, int day) { 75 * Constructs a new {@code Date} initialized to the specified date and time in th 378 int year = -1, month = -1, date = -1; local [all...] |