/frameworks/base/core/tests/coretests/src/android/text/format/ |
TimeTest.java | 99 // Use normalize(true) with these tests to change the date by 1 day. 103 // Nov 4, 12am + 0 day = Nov 4, 12am 104 // Nov 5, 12am + 0 day = Nov 5, 12am 108 // Nov 3, 12am + 1 day = Nov 4, 12am 109 // Nov 4, 12am + 1 day = Nov 5, 12am 110 // Nov 5, 12am + 1 day = Nov 6, 12am 115 // Nov 3, 1am + 1 day = Nov 4, 1am 116 // Nov 4, 1am + 1 day = Nov 5, 1am 117 // Nov 5, 1am + 1 day = Nov 6, 1am 122 // Nov 3, 2am + 1 day = Nov 4, 2a 551 int day = Time.getJulianDay(millis, time.gmtoff); local 597 int day = Time.getJulianDay(millis, time.gmtoff); local [all...] |
/prebuilts/go/darwin-x86/src/time/ |
example_test.go | 48 _, month, day := time.Now().Date() 49 if month == time.November && day == 10 { 50 fmt.Println("Happy Go day!") 112 // Here we print just the day, which is 2 in our layout string and 7 in our 127 // The predefined constant Unix uses an underscore to pad the day.
|
format.go | 22 // replaced by a digit if the following number (a day) has two digits; for 99 stdNeedDate = 1 << 8 // need month, day, year 442 day int 458 // Compute year, month, day if needed. 460 year, month, day, _ = absDate(abs, true) 492 b = appendInt(b, day, 0) 494 if day < 10 { 497 b = appendInt(b, day, 0) 499 b = appendInt(b, day, 2) 689 // Years must be in the range 0000..9999. The day of the week is checke [all...] |
/prebuilts/go/linux-x86/src/time/ |
example_test.go | 48 _, month, day := time.Now().Date() 49 if month == time.November && day == 10 { 50 fmt.Println("Happy Go day!") 112 // Here we print just the day, which is 2 in our layout string and 7 in our 127 // The predefined constant Unix uses an underscore to pad the day.
|
format.go | 22 // replaced by a digit if the following number (a day) has two digits; for 99 stdNeedDate = 1 << 8 // need month, day, year 442 day int 458 // Compute year, month, day if needed. 460 year, month, day, _ = absDate(abs, true) 492 b = appendInt(b, day, 0) 494 if day < 10 { 497 b = appendInt(b, day, 0) 499 b = appendInt(b, day, 2) 689 // Years must be in the range 0000..9999. The day of the week is checke [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
EditEventHelper.java | 166 * creating all-day events that is part of the extra data of the intent. 168 * default for the new event should be an all-day event. 1334 int day = EventRecurrence.day2TimeDay(mEventRecurrence.byday[i]); local [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
DayView.java | 92 * View for multi-day view. So far only 1 and 7 day have been tested. 181 private int[] mEarliestStartHour; // indexed by the week day offset 182 private boolean[] mHasAllDayEvent; // indexed by the week day offset 314 private int mSelectionDay; // Julian day 320 private int mSelectionDayForAccessibility; // Julian day 329 /** Width of a day or non-conflicting event */ 344 private int mFirstDayOfWeek; // First day of the week 513 * The height of the day names/numbers 517 * The height of the day names/numbers for multi-day view 4569 int day = (x - mHoursWidth) \/ (mCellWidth + DAY_GAP); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
CalendarAstronomer.java | 56 * The number of standard hours in one sidereal day. 63 * The number of sidereal hours in one mean solar day. 142 * The number of milliseconds in one day. 148 * The start of the julian day numbering scheme used by astronomers, which 151 * Note that julian day numbers and 287 * @param jdn the desired time, expressed as a "julian day number", 289 * 1/1/4713 BC (Julian), 12:00 GMT. Note that julian day 330 * expressed as a "julian day number", which is the number of elapsed 405 // Then find local midnight on this day 504 static final double JD_EPOCH = 2447891.5; // Julian day of epoc 589 double day = julian - JD_EPOCH; \/\/ Days since epoch local [all...] |
/external/icu/icu4c/source/i18n/ |
astro.cpp | 77 * The number of standard hours in one sidereal day. 85 * The number of sidereal hours in one mean solar day. 172 * The number of milliseconds in one day. 179 * The start of the julian day numbering scheme used by astronomers, which 182 * Note that julian day numbers and 310 * @param jdn the desired time, expressed as a "julian day number", 312 * 1/1/4713 BC (Julian), 12:00 GMT. Note that julian day 343 * expressed as a "julian day number", which is the number of elapsed 422 // Then find local midnight on this day 528 #define JD_EPOCH 2447891.5 // Julian day of epoc 641 double day = jDay - JD_EPOCH; \/\/ Days since epoch local 1079 double day = getJulianDay() - JD_EPOCH; \/\/ Days since epoch local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
CalendarAstronomer.java | 54 * The number of standard hours in one sidereal day. 61 * The number of sidereal hours in one mean solar day. 140 * The number of milliseconds in one day. 146 * The start of the julian day numbering scheme used by astronomers, which 149 * Note that julian day numbers and 285 * @param jdn the desired time, expressed as a "julian day number", 287 * 1/1/4713 BC (Julian), 12:00 GMT. Note that julian day 328 * expressed as a "julian day number", which is the number of elapsed 403 // Then find local midnight on this day 502 static final double JD_EPOCH = 2447891.5; // Julian day of epoc 587 double day = julian - JD_EPOCH; \/\/ Days since epoch local [all...] |
/frameworks/base/core/java/android/widget/ |
DatePickerCalendarDelegate.java | 47 * A delegate for picking up a date (day / month / year). 165 // Set up day picker view. 239 * Listener called when the user selects a day in the day picker view. 243 public void onDaySelected(DayPickerView view, Calendar day) { 244 mCurrentDate.setTimeInMillis(day.getTimeInMillis()); 256 // currently selected day number, change the selected day number 257 // to the last day of the selected month or year. 260 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH) 543 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH); local [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
simpletz.h | 143 * day-of-week-in-month. See setStartRule() for a 145 * @param savingsStartDayOfWeek The daylight savings starting day-of-week. 151 * @param savingsEndDayOfWeekInMonth The daylight savings ending day-of-week-in-month. 153 * @param savingsEndDayOfWeek The daylight savings ending day-of-week. 184 * day-of-week-in-month. See setStartRule() for a 186 * @param savingsStartDayOfWeek The daylight savings starting day-of-week. 192 * @param savingsEndDayOfWeekInMonth The daylight savings ending day-of-week-in-month. 194 * @param savingsEndDayOfWeek The daylight savings ending day-of-week. 228 * day-of-week-in-month. See setStartRule() for a 230 * @param savingsStartDayOfWeek The daylight savings starting day-of-week [all...] |
/libcore/ojluni/src/main/java/sun/util/calendar/ |
LocalGregorianCalendar.java | 301 int day = ldate.getDayOfMonth(); local 303 if (day > sinceDay) { 306 if (day == sinceDay) {
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
AlertServiceTest.java | 416 int id = at.addAlertRow(100, SCHEDULED, ACCEPTED, 0 /* all day */, 1300000, 2300000, 0); 621 int day = now.monthDay; local 628 long allDayStart = Utils.createTimeInMillis(0, 0, 0, day, month, year, Time.TIMEZONE_UTC); 632 Utils.createTimeInMillis(0, 0, 10, day, month, year, Time.getCurrentTimezone()), 633 Utils.createTimeInMillis(0, 30, 10, day, month, year, Time.getCurrentTimezone()), 637 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), 638 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), 0); 646 Utils.createTimeInMillis(0, 0, 7, day, month, year, Time.getCurrentTimezone()), 0); 649 // day event). 650 long currentTime = Utils.createTimeInMillis(0, 0, 0, day, month, year [all...] |
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
DatePicker.java | 46 * A view for selecting a month / year / day based on a calendar like layout. 89 * @param dayOfMonth The day of the month that was set. 110 mDayPicker = (NumberPicker) findViewById(R.id.day); 151 // Adjust max day of the month 163 // Adjust max day for leap years if needed 205 // We use numeric spinners for year and day, but textual months. Ask icu4c what 255 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, 260 mDay = day; 355 * @param dayOfMonth The initial day of the month. 367 * @param dayOfMonth The initial day of the month [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeScheduleRuleSettings.java | 154 // Compute an ordered, delimited list of day names based on the persisted user config. 161 final int day = daysOfWeek[i]; local 163 if (day == days[j]) { 164 c.set(Calendar.DAY_OF_WEEK, day);
|
/external/chromium-trace/catapult/third_party/WebOb/webob/ |
datetime_utils.py | 27 'year', 'month', 'week', 'day', 'hour', 'minute', 'second', 54 day = timedelta(days=1) variable
|
/external/chromium-trace/catapult/third_party/flot/ |
jquery.flot.time.js | 132 var props = ["Date", "Day", "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds"]; 168 "day": 24 * 60 * 60 * 1000, 184 [1, "day"], [2, "day"], [3, "day"], 302 if (step >= timeUnitSize.day) { 305 if (step >= timeUnitSize.day * 4) { 334 // the middle of a day 384 } else if (t < timeUnitSize.day) { 385 if (span < 2 * timeUnitSize.day) { [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
ChineseCalendar.java | 378 * WEEK_OF_MONTH In a 29 day month, if the first 7 days make up week 1 379 * that leaves 3 full weeks and 1 day at the end. The least maximum is 386 * DAY_OF_WEEK_IN_MONTH In a 29 or 30 day month, there are 4 full weeks 451 EPOCH_JULIAN_DAY + 1; // Julian day -> local days 503 * start position, pinning the day of month if necessary. The start 505 * and a day-of-month. Used by add() and roll(). 506 * @param newMoon the local days of the first day of the month of the 508 * @param dom the 1-based day-of-month of the start position 547 int day = get(JULIAN_DAY) - EPOCH_JULIAN_DAY; // Get local day local 566 int day = get(JULIAN_DAY) - EPOCH_JULIAN_DAY; \/\/ Get local day local [all...] |
SimpleTimeZone.java | 78 * By default, this constructor specifies day-of-week-in-month rules. That 84 * Day of month. To specify an exact day of the month, such as March 1, set 87 * Day of week after day of month. To specify the first day of the week 88 * occurring on or after an exact day of the month, make the day of the week 90 * this indicates the first Monday on or after the 5th day of the 93 * Day of week before day of month. To specify the last day of the wee [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
HebrewTest.java | 55 // year month day field amount year month day 71 { 5757, KISLEV, 1, DATE, 30, 5757, KISLEV, 2 }, // 29-day month 72 { 5758, KISLEV, 1, DATE, 31, 5758, KISLEV, 2 }, // 30-day month 99 // year month day field amount year month day 117 { 5757, KISLEV, 1, DATE, 30, 5757, TEVET, 2 }, // 29-day month 118 { 5758, KISLEV, 1, DATE, 31, 5758, TEVET, 2 }, // 30-day month 144 // Julian Day Era Year Month Day WkDay Hour Min Se 479 int day = 15; local [all...] |
/external/icu/icu4c/source/test/cintltst/ |
utmstest.c | 352 int32_t day; member in struct:DotNetDateTimeTicks 363 /* year, month, day, ticks */ 445 const int32_t dayMillis = 86400 * INT64_C(1000); /* 1 day = 86400 seconds */ 468 ucal_setDate(cal, dt->year, dt->month - 1, dt->day, &errorCode); /* Java & ICU use January = month 0. */ 473 (int)i, (int)(millis/dayMillis), (int)(icuDate/dayMillis), (int)dt->year, (int)dt->month, (int)dt->day); 481 (int)i, (int)(ticks/dayTicks), (int)(dt->ticks/dayTicks), (int)dt->year, (int)dt->month, (int)dt->day);
|
/external/icu/icu4c/source/test/intltest/ |
caltest.h | 28 * Test the handling of the day of the week, checking for correctness and 61 virtual void verify765(const UnicodeString& msg, Calendar* c, int32_t year, int32_t month, int32_t day);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
ChineseCalendar.java | 388 * WEEK_OF_MONTH In a 29 day month, if the first 7 days make up week 1 389 * that leaves 3 full weeks and 1 day at the end. The least maximum is 396 * DAY_OF_WEEK_IN_MONTH In a 29 or 30 day month, there are 4 full weeks 464 EPOCH_JULIAN_DAY + 1; // Julian day -> local days 519 * start position, pinning the day of month if necessary. The start 521 * and a day-of-month. Used by add() and roll(). 522 * @param newMoon the local days of the first day of the month of the 524 * @param dom the 1-based day-of-month of the start position 564 int day = get(JULIAN_DAY) - EPOCH_JULIAN_DAY; // Get local day local 584 int day = get(JULIAN_DAY) - EPOCH_JULIAN_DAY; \/\/ Get local day local [all...] |
SimpleTimeZone.java | 81 * By default, this constructor specifies day-of-week-in-month rules. That 87 * Day of month. To specify an exact day of the month, such as March 1, set 90 * Day of week after day of month. To specify the first day of the week 91 * occurring on or after an exact day of the month, make the day of the week 93 * this indicates the first Monday on or after the 5th day of the 96 * Day of week before day of month. To specify the last day of the wee [all...] |