/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/ |
comparisons.pass.cpp | 15 // Returns: x.month() == y.month() && x.day() == y.day(). 28 using month = std::chrono::month; 67 month_weekday{month{i}, weekday_indexed{Sunday, 1}}, 68 month_weekday{month{j}, weekday_indexed{Sunday, 1}}, 71 // same month, different weeks 75 month_weekday{month{2}, weekday_indexed{Sunday, i}}, 76 month_weekday{month{2}, weekday_indexed{Sunday, j}}, 79 // same month, different day [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.members/ |
plus_minus_equal_year.pass.cpp | 38 using month = std::chrono::month; 50 static_assert(testConstexpr<year_month, years>(year_month{year{1}, month{1}}), ""); 54 month m{2}; 57 assert(ym.month() == m); 59 assert(ym.month() == m); 61 assert(ym.month() == m); 63 assert(ym.month() == m);
|
ok.pass.cpp | 25 using month = std::chrono::month; 29 constexpr month January = std::chrono::January; 35 static_assert(!year_month{year{2019}, month{}}.ok(), ""); // Bad month 40 year_month ym{year{2019}, month{i}}; 41 assert( ym.ok() == month{i}.ok());
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.members/ |
plus_minus_equal_year.pass.cpp | 39 using month = std::chrono::month; 50 static_assert(testConstexpr<year_month_day, years>(year_month_day{year{1}, month{1}, day{1}}), ""); 54 month m{2}; 58 assert(ym.month() == m); 61 assert(ym.month() == m); 64 assert(ym.month() == m); 67 assert(ym.month() == m);
|
op.local_days.pass.cpp | 51 using month = std::chrono::month; 61 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; 69 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; 79 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; 87 year_month_day ymd{year{1939}, month{11}, day{29}};
|
op.sys_days.pass.cpp | 51 using month = std::chrono::month; 61 constexpr year_month_day ymd{year{1970}, month{1}, day{1}}; 69 constexpr year_month_day ymd{year{2000}, month{2}, day{2}}; 79 constexpr year_month_day ymd{year{1940}, month{1}, day{2}}; 87 year_month_day ymd{year{1939}, month{11}, day{29}};
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/ |
Dates.py | 3 # Date(month,day,year) returns a Date object. An instance prints as,
20 # .month in 1..12
73 def _days_in_month(month, year): # number of days in month of year
74 if month == 2 and _is_leap(year): return 29
75 return _DAYS_IN_MONTH[month-1]
77 def _days_before_month(month, year): # number of days in year before month
78 return _DAYS_BEFORE_MONTH[month-1] + (month > 2 and _is_leap(year)) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
BuddhistCalendar.java | 138 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 143 public BuddhistCalendar(int year, int month, int date) { 144 super(year, month, date); 153 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 164 public BuddhistCalendar(int year, int month, int date, int hour, 167 super(year, month, date, hour, minute, second) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
BuddhistCalendar.java | 146 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 152 public BuddhistCalendar(int year, int month, int date) { 153 super(year, month, date); 162 * @param month The value used to set the calendar's {@link #MONTH MONTH} time field. 174 public BuddhistCalendar(int year, int month, int date, int hour, 177 super(year, month, date, hour, minute, second) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/ |
comparisons.pass.cpp | 15 // Returns: x.month() == y.month() && x.day() == y.day(). 19 // If x.month() < y.month() returns true. 20 // Otherwise, if x.month() > y.month() returns false. 33 using month = std::chrono::month; 58 month_day{month{i}, day{1}}, 59 month_day{month{j}, day{1}} [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.members/ |
ok.pass.cpp | 25 using month = std::chrono::month; 30 constexpr month January = std::chrono::January; 37 static_assert(!month_weekday_last{month{}, lastTuesday}.ok(), ""); // Bad month 38 static_assert(!month_weekday_last{January, weekday_last{weekday{12}}}.ok(), ""); // Bad month 43 month_weekday_last mwdl{month{i}, lastTuesday}; 44 assert( mwdl.ok() == month{i}.ok());
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ |
op.local_days.pass.cpp | 18 // weekday() of year()/month(). If index() is 0 the returned sys_days 20 // year()/month(). Otherwise the returned value is unspecified. 32 using month = std::chrono::month; 41 constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; 49 constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}}; 59 constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; 67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}};
|
op.sys_days.pass.cpp | 18 // weekday() of year()/month(). If index() is 0 the returned sys_days 20 // year()/month(). Otherwise the returned value is unspecified. 32 using month = std::chrono::month; 41 constexpr year_month_weekday ymwd{year{1970}, month{1}, weekday_indexed{std::chrono::Thursday, 1}}; 49 constexpr year_month_weekday ymwd{year{2000}, month{2}, weekday_indexed{std::chrono::Wednesday, 1}}; 59 constexpr year_month_weekday ymwd{year{1940}, month{1},weekday_indexed{std::chrono::Tuesday, 1}}; 67 year_month_weekday ymwd{year{1939}, month{11}, weekday_indexed{std::chrono::Wednesday, 5}};
|
ok.pass.cpp | 26 using month = std::chrono::month; 31 constexpr month January = std::chrono::January; 39 static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{}}.ok(), ""); // All three bad 42 static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); // Bad month 45 static_assert(!year_month_weekday{year{-32768}, month{}, weekday_indexed{Tuesday, 1}}.ok(), ""); // Bad year & month 46 static_assert(!year_month_weekday{year{2019}, month{}, weekday_indexed{} }.ok(), ""); // Bad month & da [all...] |
/external/python/cpython2/Demo/classes/ |
Dates.py | 3 # Date(month,day,year) returns a Date object. An instance prints as, 20 # .month in 1..12 73 def _days_in_month(month, year): # number of days in month of year 74 if month == 2 and _is_leap(year): return 29 75 return _DAYS_IN_MONTH[month-1] 77 def _days_before_month(month, year): # number of days in year before month 78 return _DAYS_BEFORE_MONTH[month-1] + (month > 2 and _is_leap(year) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/ |
minus.pass.cpp | 38 && ym1.month() == ymdl.month() 47 && ym1.month() == std::chrono::month{static_cast<unsigned>(ymdl.month()) - 6} 54 using month = std::chrono::month; 60 constexpr month December = std::chrono::December; 72 assert(ym1.month() == December); 87 assert(static_cast<unsigned>(ym1.month()) == 12U-i) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
year_month_day.pass.cpp | 16 // Returns: {ym.year(), ym.month(), d}. 24 // Returns: y / md.month() / md.day(). 49 using month = std::chrono::month; 55 constexpr month February = std::chrono::February; 62 static_assert((Feb2018/day{2}).month() == February, ""); 70 month m(j); 75 assert(ymd.month() == m); 85 static_assert((Feb2018/2).month() == February, ""); 93 month m(j) [all...] |
year_month_weekday.pass.cpp | 16 // Returns: {ym.year(), ym.month(), wdi}. 20 // Returns: {y, mwd.month(), mwd.weekday_indexed()}. 47 using month = std::chrono::month; 53 constexpr month February = std::chrono::February; 63 static_assert((Feb2018/weekday_indexed{Tuesday, 2}).month() == February, "" ); 72 month m(j); 76 assert(ymd.month() == m); 89 static_assert((year{2018}/Feb1stTues).month() == February, "" ); 98 month m(j) [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
simpletz.h | 54 * count from the end of the month backwards. For example, if Daylight Savings 55 * Time starts or ends at the last Sunday a month, use <code>dayOfWeekInMonth = -1</code> 142 * @param savingsStartMonth The daylight savings starting month. Month is 145 * day-of-week-in-month. See setStartRule() for a 151 * @param savingsEndMonth The daylight savings ending month. Month is 153 * @param savingsEndDayOfWeekInMonth The daylight savings ending day-of-week-in-month. 183 * @param savingsStartMonth The daylight savings starting month. Month i [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/ |
minus.pass.cpp | 21 // Returns: x.year() - y.year() + months{static_cast<int>(unsigned{x.month()}) - 22 // static_cast<int>(unsigned{y.month()})} 37 using month = std::chrono::month; 45 // static_assert(testConstexprYears (year_month{year{1}, month{1}}), ""); 52 assert(ym1.month() == std::chrono::January); 60 // static_assert(testConstexprMonths(year_month{year{1}, month{1}}), ""); 67 assert(ym1.month() == month(11 - i)); 75 // static_assert(testConstexprMonths(year_month{year{1}, month{1}}), "") [all...] |
/external/protobuf/src/google/protobuf/stubs/ |
time.cc | 62 int64 SecondsPerMonth(int month, bool leap) { 63 if (month == 2 && leap) { 64 return kSecondsPerDay * (kDaysInMonth[month] + 1); 66 return kSecondsPerDay * kDaysInMonth[month]; 75 time.month < 1 || time.month > 12 || 82 if (time.month == 2 && IsLeapYear(time.year)) { 83 return time.month <= kDaysInMonth[time.month] + 1; 85 return time.month <= kDaysInMonth[time.month] 115 int month = time.month; local 236 int month = 1; local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Grego.java | 70 * Return the number of days in the given month. 72 * @param month 0-based month, with 0==Jan 73 * @return the number of days in the given month 75 public static final int monthLength(int year, int month) { 76 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; 80 * Return the length of a previous month of the Gregorian calendar. 82 * @param month 0-based month, with 0==Jan 83 * @return the number of days in the month previous to the given mont 147 int month = (12 * (dayOfYear + correction) + 6) \/ 367; \/\/ zero-based month local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Grego.java | 68 * Return the number of days in the given month. 70 * @param month 0-based month, with 0==Jan 71 * @return the number of days in the given month 73 public static final int monthLength(int year, int month) { 74 return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)]; 78 * Return the length of a previous month of the Gregorian calendar. 80 * @param month 0-based month, with 0==Jan 81 * @return the number of days in the month previous to the given mont 145 int month = (12 * (dayOfYear + correction) + 6) \/ 367; \/\/ zero-based month local [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ |
plus.pass.cpp | 15 // Returns: (ymd.year() / ymd.month() + dm) / ymd.day(). 22 // Returns: (ymd.year() + dy) / ymd.month() / ymd.day(). 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; 60 using month = std::chrono::month; 71 static_assert(testConstexprMonths(year_month_day{year{1}, month{1}, day{1}}), ""); 80 assert(ym1.month() == month(1 + i)) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
HeaderParser.java | 90 String month = lexer.ttoken().toLowerCase(); local 91 if (month.equals("jan")) { 92 retval.set(Calendar.MONTH, Calendar.JANUARY); 93 } else if (month.equals("feb")) { 94 retval.set(Calendar.MONTH, Calendar.FEBRUARY); 95 } else if (month.equals("mar")) { 96 retval.set(Calendar.MONTH, Calendar.MARCH); 97 } else if (month.equals("apr")) { 98 retval.set(Calendar.MONTH, Calendar.APRIL); 99 } else if (month.equals("may")) [all...] |