/external/libcxx/test/std/utilities/time/time.duration/time.duration.literals/ |
literals1.pass.cpp | 58 assert(January == month(1)); 59 assert(February == month(2)); 60 assert(March == month(3)); 61 assert(April == month(4)); 62 assert(May == month(5)); 63 assert(June == month(6)); 64 assert(July == month(7)); 65 assert(August == month(8)); 66 assert(September == month(9)); 67 assert(October == month(10)) [all...] |
/external/python/cpython2/Demo/scripts/ |
unbirthday.py | 26 month = int(sys.argv[2]) 28 month = int(raw_input('And in which month? (1-12) ')) 29 if not (1 <= month <= 12): 30 print 'There is no month numbered', month 36 day = int(raw_input('And on what day of that month? (1-31) ')) 37 if month == 2 and calendar.isleap(year): 40 maxday = calendar.mdays[month] 42 print 'There are no', day, 'days in that month!' [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/ |
literals.pass.cpp | 13 // inline constexpr month January{1}; 14 // inline constexpr month February{2}; 15 // inline constexpr month March{3}; 16 // inline constexpr month April{4}; 17 // inline constexpr month May{5}; 18 // inline constexpr month June{6}; 19 // inline constexpr month July{7}; 20 // inline constexpr month August{8}; 21 // inline constexpr month September{9}; 22 // inline constexpr month October{10} [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.members/ |
month_day_last.pass.cpp | 26 using month = std::chrono::month; 35 year_month_day_last ymdl(year{1234}, month_day_last{month{i}}); 36 assert( static_cast<unsigned>(ymdl.month_day_last().month()) == i);
|
ok.pass.cpp | 26 using month = std::chrono::month; 30 constexpr month January = std::chrono::January; 35 static_assert(!year_month_day_last{year{-32768}, month_day_last{month{}}}.ok(), ""); // both bad 37 static_assert(!year_month_day_last{year{2019}, month_day_last{month{}}}.ok(), ""); // Bad month 42 year_month_day_last ym{year{2019}, month_day_last{month{i}}}; 43 assert( ym.ok() == month{i}.ok());
|
/external/icu/icu4c/source/i18n/ |
hebrwcal.cpp | 45 { 0, 0, 12, 12}, // MONTH 93 * The cumulative # of days to the end of each month in a non-leap year 117 * The cumulative # of days to the end of each month in a leap year 193 * need to be changed. For example, when adding one to the {@link #MONTH MONTH} field 204 * of a <tt>HebrewCalendar</tt>. Since the {@link #MONTH MONTH} field behaves 222 // We can't just do a set(MONTH, get(MONTH) + amount). The 227 int32_t month = get(UCAL_MONTH, status) local 319 int32_t month = get(UCAL_MONTH, status); local 585 int32_t month = 0; local [all...] |
cecal.cpp | 24 { 0, 0, 12, 12}, // MONTH 112 CECalendar::ceToJD(int32_t year, int32_t month, int32_t date, int32_t jdEpochOffset) 114 // handle month > 12, < 0 (e.g. from add/set) 115 if ( month >= 0 ) { 116 year += month/13; 117 month %= 13; 119 ++month; 120 year += month/13 - 1; 121 month = month%13 + 12 [all...] |
persncal.cpp | 40 { 0, 0, 11, 11}, // MONTH 126 * Return the day # on which the given month starts. Days are counted 130 * @param year The Persian month, 0-based 132 int32_t PersianCalendar::monthStart(int32_t year, int32_t month) const { 133 return handleComputeMonthStart(year,month,TRUE); 141 * Return the length (in days) of the given month. 144 * @param year The Persian month, 0-based 146 int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month) const { 147 // If the month is out of range, adjust it into range, and 149 if (month < 0 || month > 11) 213 int32_t year, month, dayOfMonth, dayOfYear; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
PersianCalendar.java | 30 * and the final month is 29 days in non-leap years and 30 days in leap 31 * ones. Historically, the lengths of the month differed in different 91 // len length of month 92 // len2 length of month in a leap year 93 // st days in year before start of month 217 * @param month the value used to set the {@link #MONTH MONTH} time field in the calendar. 218 * Note that the month value is 0-based. e.g., 0 for Farvardin. 226 public PersianCalendar(int year, int month, int date 423 int year, month, dayOfMonth, dayOfYear; local [all...] |
CECalendar.java | 29 { 0, 0, 12, 12 }, // MONTH 125 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 130 protected CECalendar(int year, int month, int date) { 132 this.set(year, month, date); 151 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 158 protected CECalendar(int year, int month, int date, int hour [all...] |
IndianCalendar.java | 31 * Month Length Start date (Gregorian) 73 * Constant for Chaitra, the 1st month of the Indian year. 78 * Constant for Vaisakha, the 2nd month of the Indian year. 83 * Constant for Jyaistha, the 3rd month of the Indian year. 88 * Constant for Asadha, the 4th month of the Indian year. 93 * Constant for Sravana, the 5th month of the Indian year. 98 * Constant for Bhadra, the 6th month of the Indian year. 103 * Constant for Asvina, the 7th month of the Indian year. 108 * Constant for Kartika, the 8th month of the Indian year. 113 * Constant for Agrahayana, the 9th month of the Indian year. 499 int year, month, day; local [all...] |
SimpleDateRule.java | 26 * Construct a rule for a fixed date within a month 28 * @param month The month in which this rule occurs (0-based). 29 * @param dayOfMonth The date in that month (1-based). 32 public SimpleDateRule(int month, int dayOfMonth) 34 this.month = month; 40 /* package */SimpleDateRule(int month, int dayOfMonth, Calendar cal) 42 this.month = month; 220 private int month; field in class:SimpleDateRule [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
PersianCalendar.java | 29 * and the final month is 29 days in non-leap years and 30 days in leap 30 * ones. Historically, the lengths of the month differed in different 89 // len length of month 90 // len2 length of month in a leap year 91 // st days in year before start of month 214 * @param month the value used to set the {@link #MONTH MONTH} time field in the calendar. 215 * Note that the month value is 0-based. e.g., 0 for Farvardin. 223 public PersianCalendar(int year, int month, int date 420 int year, month, dayOfMonth, dayOfYear; local [all...] |
CECalendar.java | 28 { 0, 0, 12, 12 }, // MONTH 124 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 129 protected CECalendar(int year, int month, int date) { 131 this.set(year, month, date); 150 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 157 protected CECalendar(int year, int month, int date, int hour [all...] |
IndianCalendar.java | 30 * Month Length Start date (Gregorian) 74 * Constant for Chaitra, the 1st month of the Indian year. 80 * Constant for Vaisakha, the 2nd month of the Indian year. 86 * Constant for Jyaistha, the 3rd month of the Indian year. 92 * Constant for Asadha, the 4th month of the Indian year. 98 * Constant for Sravana, the 5th month of the Indian year. 104 * Constant for Bhadra, the 6th month of the Indian year. 110 * Constant for Asvina, the 7th month of the Indian year. 116 * Constant for Kartika, the 8th month of the Indian year. 122 * Constant for Agrahayana, the 9th month of the Indian year. 528 int year, month, day; local [all...] |
SimpleDateRule.java | 25 * Construct a rule for a fixed date within a month 27 * @param month The month in which this rule occurs (0-based). 28 * @param dayOfMonth The date in that month (1-based). 32 public SimpleDateRule(int month, int dayOfMonth) 34 this.month = month; 40 /* package */SimpleDateRule(int month, int dayOfMonth, Calendar cal) 42 this.month = month; 226 private int month; field in class:SimpleDateRule [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
plus_minus_equal_month.pass.cpp | 26 if (static_cast<unsigned>((d1 ).month()) != 1) return false; 27 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; 28 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; 29 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; 30 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; 31 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; 32 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; 39 using month = std::chrono::month; 53 static_assert(testConstexpr<year_month_weekday, months>(year_month_weekday{year{1234}, month{1}, weekday_indexed{Tuesday, 2}}), "") [all...] |
ctor.pass.cpp | 15 // constexpr year_month_weekday(const chrono::year& y, const chrono::month& m, 22 // constexpr chrono::month month() const noexcept; 37 using month = std::chrono::month; 42 constexpr month January = std::chrono::January; 46 ASSERT_NOEXCEPT(year_month_weekday{year{1}, month{1}, weekday_indexed{Tuesday, 1}}); 50 static_assert( ym0.month() == month{}, ""); 58 static_assert( ym1.month() == January, "") [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.members/ |
plus_minus_equal_month.pass.cpp | 26 if (static_cast<unsigned>((d1 ).month()) != 1) return false; 27 if (static_cast<unsigned>((d1 += Ds{ 1}).month()) != 2) return false; 28 if (static_cast<unsigned>((d1 += Ds{ 2}).month()) != 4) return false; 29 if (static_cast<unsigned>((d1 += Ds{12}).month()) != 4) return false; 30 if (static_cast<unsigned>((d1 -= Ds{ 1}).month()) != 3) return false; 31 if (static_cast<unsigned>((d1 -= Ds{ 2}).month()) != 1) return false; 32 if (static_cast<unsigned>((d1 -= Ds{12}).month()) != 1) return false; 39 using month = std::chrono::month; 52 static_assert(testConstexpr<year_month_weekday_last, months>(year_month_weekday_last{year{1234}, month{1}, weekday_last{Tuesday}}), "") [all...] |
ctor.pass.cpp | 14 // constexpr year_month_weekday_last(const chrono::year& y, const chrono::month& m, 21 // constexpr chrono::month month() const noexcept; 35 using month = std::chrono::month; 40 constexpr month January = std::chrono::January; 43 ASSERT_NOEXCEPT(year_month_weekday_last{year{1}, month{1}, weekday_last{Tuesday}}); 47 static_assert( ym1.month() == January, "");
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
month_day.pass.cpp | 15 // operator/(const month& m, const day& d) noexcept; 19 // operator/(const day& d, const month& m) noexcept; 23 // operator/(const month& m, int d) noexcept; 28 // Returns: month(m) / d. 32 // Returns: month(m) / d. 45 using month = std::chrono::month; 48 constexpr month February = std::chrono::February; 50 { // operator/(const month& m, const day& d) (and switched) 59 month m(i) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/ |
ctor.pass.cpp | 14 // constexpr month_weekday_last(const chrono::month& m, 20 // constexpr chrono::month month() const noexcept; 33 using month = std::chrono::month; 38 constexpr month January = std::chrono::January; 43 // bad month 44 constexpr month_weekday_last mwdl1{month{}, weekday_last{Tuesday}}; 45 static_assert( mwdl1.month() == month{}, ""); [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/ |
plus.pass.cpp | 15 // Returns: (ym.year() + dy) / ym.month(). 48 if (static_cast<unsigned>((ym ).month()) != 1) return false; 49 if (static_cast<unsigned>((ym + offset).month()) != 7) return false; 50 if (static_cast<unsigned>((offset + ym).month()) != 7) return false; 59 using month = std::chrono::month; 70 static_assert(testConstexprYears (year_month{year{1}, month{1}}), ""); 79 assert(ym1.month() == std::chrono::January); 80 assert(ym2.month() == std::chrono::January); 92 static_assert(testConstexprMonths(year_month{year{1}, month{1}}), "") [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/ |
comparisons.pass.cpp | 15 // Returns: x.month() == y.month() 18 // Returns: x.month() < y.month() 30 using month = std::chrono::month; 35 constexpr month January = std::chrono::January; 56 month_weekday_last{month{i}, weekday_last{Tuesday}}, 57 month_weekday_last{month{j}, weekday_last{Tuesday}}, 70 month_weekday_last{month{1}, weekday_last{weekday{1}}} [all...] |
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
Alarm.java | 34 public int month; field in class:Alarm 43 public Alarm(int id, int month, int date, int hour, int minute) { 45 this.month = month; 63 jsonObject.put("month", month); 85 alarm.month = jsonObject.getInt("month"); 100 ", month=" + month [all...] |