/development/scripts/ |
aday | 10 month = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.index(letter) * 3 11 year = 2009 + (month / 12) 12 month %= 12 14 return datetime.date(year, month + 1, 1) + datetime.timedelta(days=day - 1)
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.nonmembers/ |
streaming.pass.cpp | 19 // Returns: os << md.month() << '/' << md.day(). 38 using month = std::chrono::month; 40 std::cout << month_day{month{1}, day{1}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/ |
minus.pass.cpp | 12 // class month; 14 // constexpr month operator-(const month& x, const months& y) noexcept; 17 // constexpr months operator-(const month& x, const month& y) noexcept; 50 using month = std::chrono::month; 53 ASSERT_NOEXCEPT(std::declval<month>() - std::declval<months>()); 54 ASSERT_NOEXCEPT(std::declval<month>() - std::declval<month>()); [all...] |
plus.pass.cpp | 12 // class month; 14 // constexpr month operator+(const month& x, const months& y) noexcept; 15 // Returns: month(int{x} + y.count()). 17 // constexpr month operator+(const months& x, const month& y) noexcept; 19 // month{modulo(static_cast<long long>(int{x}) + (y.count() - 1), 12) + 1} 23 // Assuming no overflow in the signed summation, this operation results in a month 49 using month = std::chrono::month; [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/ |
streaming.pass.cpp | 19 // Returns: os << mwd.month() << '/' << mwd.weekday_indexed(). 31 using month = std::chrono::month; 35 std::cout << month_weekday{month{1}, weekday_indexed{weekday{3}, 3}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/ |
streaming.pass.cpp | 19 // Returns: os << mdl.month() << "/last". 32 using month = std::chrono::month; 36 std::cout << month_weekday_last{month{1}, weekday_last{weekday{3}}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/ |
streaming.pass.cpp | 19 // Returns: os << ym.year() << '/' << ym.month(). 54 using month = std::chrono::month; 56 std::cout << year_month{year{2018}, month{3}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ |
streaming.pass.cpp | 19 // Returns: os << ym.year() << '/' << ym.month(). 54 using month = std::chrono::month; 57 std::cout << year_month_day{year{2018}, month{3}, day{12}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/ |
streaming.pass.cpp | 33 using month = std::chrono::month; 36 std::cout << year_month_day_last{year{2018}, month_day_last{month{3}}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/ |
streaming.pass.cpp | 19 // Returns: os << ym.year() << '/' << ym.month(). 53 using month = std::chrono::month; 56 std::cout << year_month_weekday{year{2018}, month{3}, weekday{4}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/ |
streaming.pass.cpp | 19 // Returns: os << ymwdl.year() << '/' << ymwdl.month() << '/' << ymwdl.weekday_last(). 33 using month = std::chrono::month; 37 std::cout << year_month_weekday_last{year{2018}, month{3}, weekday_last{weekday{4}}};
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ym/time.cal.ym.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; 38 using month = std::chrono::month; 49 static_assert(testConstexpr<year_month, months>(year_month{year{1234}, month{1}}), "") [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.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; 50 static_assert(testConstexpr<year_month_day, months>(year_month_day{year{1234}, month{1}, day{1}}), "") [all...] |
ctor.pass.cpp | 15 // constexpr year_month_day(const chrono::year& y, const chrono::month& m, 22 // constexpr chrono::month month() const noexcept; 35 using month = std::chrono::month; 40 ASSERT_NOEXCEPT(year_month_day{year{1}, month{1}, day{1}}); 42 constexpr month January = std::chrono::January; 46 static_assert( ym0.month() == month{}, ""); 52 static_assert( ym1.month() == January, "") [all...] |
ctor.year_month_day_last.pass.cpp | 17 // y_ with ymdl.year(), m_ with ymdl.month(), and d_ with ymdl.day(). 20 // constexpr chrono::month month() const noexcept; 33 using month = std::chrono::month; 42 constexpr year_month_day_last ymdl{year{2019}, month_day_last{month{1}}}; 46 static_assert( ymd.month() == month{1}, ""); 52 constexpr year_month_day_last ymdl{year{1970}, month_day_last{month{4}}}; 56 static_assert( ymd.month() == month{4}, "") [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.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; 50 static_assert(testConstexpr<year_month_day_last, months>(year_month_day_last{year{1234}, month_day_last{month{1}}}), "") [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mdlast/ |
ok.pass.cpp | 25 using month = std::chrono::month; 31 static_assert(!month_day_last{month{}}.ok(), ""); 36 month_day_last mdl{month{i}}; 40 // If the month is not ok, all the days are bad 43 month_day_last mdl{month{i}};
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
HebrewCalendar.java | 27 * the lunar month (approximately 29.53 days) an extra "leap month" is 34 * The leap month is known as "Adar 1" and is inserted between the 35 * months of Shevat and Adar in leap years. Since the leap month does 37 * month numbers are particularly complex. Users of this class should 86 * Constant for Tishri, the 1st month of the Hebrew year. 91 * Constant for Heshvan, the 2nd month of the Hebrew year. 96 * Constant for Kislev, the 3rd month of the Hebrew year. 101 * Constant for Tevet, the 4th month of the Hebrew year. 106 * Constant for Shevat, the 5th month of the Hebrew year. 435 int month = get(MONTH); local 515 int month = get(MONTH); local 786 int month = 0; local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
HebrewCalendar.java | 26 * the lunar month (approximately 29.53 days) an extra "leap month" is 33 * The leap month is known as "Adar 1" and is inserted between the 34 * months of Shevat and Adar in leap years. Since the leap month does 36 * month numbers are particularly complex. Users of this class should 86 * Constant for Tishri, the 1st month of the Hebrew year. 92 * Constant for Heshvan, the 2nd month of the Hebrew year. 98 * Constant for Kislev, the 3rd month of the Hebrew year. 104 * Constant for Tevet, the 4th month of the Hebrew year. 110 * Constant for Shevat, the 5th month of the Hebrew year. 458 int month = get(MONTH); local 539 int month = get(MONTH); local 812 int month = 0; local [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.mwd/time.cal.mwd.members/ |
ctor.pass.cpp | 13 // month_weekday represents the nth weekday of a month, of an as yet unspecified year. 15 // constexpr month_weekday(const chrono::month& m, const chrono::weekday_indexed& wdi) noexcept; 18 // constexpr chrono::month month() const noexcept; 31 using month = std::chrono::month; 35 ASSERT_NOEXCEPT(month_weekday{month{1}, weekday_indexed{weekday{}, 1}}); 37 constexpr month_weekday md0{month{}, weekday_indexed{}}; 38 static_assert( md0.month() == month{}, ""); [all...] |
/external/python/cpython2/Modules/_ctypes/libffi/ |
mdate-sh | 104 # until we find a month. This cannot work with files whose owner is a 106 # will be owned by a user whose name is a month. So we first look at 113 # Find which argument is the month. 114 month= 116 until test $month 123 Jan) month=January; nummonth=1;; 124 Feb) month=February; nummonth=2;; 125 Mar) month=March; nummonth=3;; 126 Apr) month=April; nummonth=4;; 127 May) month=May; nummonth=5; [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.operators/ |
month_day_last.pass.cpp | 15 // operator/(const month& m, last_spec) noexcept; 20 // Returns: month(m) / last. 23 // operator/(last_spec, const month& m) noexcept; 28 // Returns: month(m) / last. 32 // where m is an expression of type month. ? end note] 35 // static_assert(mdl.month() == February); 52 using month = std::chrono::month; 55 constexpr month February = std::chrono::February; 64 static_assert(mdl.month() == February, "") [all...] |
year_month.pass.cpp | 14 // constexpr year_month operator/(const year& y, const month& m) noexcept; 18 // Returns: y / month(m). 31 using month = std::chrono::month; 35 constexpr month February = std::chrono::February; 37 { // operator/(const year& y, const month& m) 42 static_assert((year{2018}/February).month() == month{2}, ""); 46 year_month ym = year{i}/month{j}; 48 assert(static_cast<unsigned>(ym.month()) == j) [all...] |
/external/libcxx/test/std/utilities/time/time.cal/time.cal.md/time.cal.md.members/ |
ok.pass.cpp | 16 // number of days in month m_; otherwise returns false. 28 using month = std::chrono::month; 43 assert(!(month_day{month{i}, day{ 0}}.ok())); 44 assert( (month_day{month{i}, day{ 1}}.ok())); 45 assert( (month_day{month{i}, day{10}}.ok())); 46 assert( (month_day{month{i}, day{29}}.ok())); 47 assert( (month_day{month{i}, day{30}}.ok()) == (i != 2)); 48 assert( (month_day{month{i}, day{31}}.ok()) == is31); 49 assert(!(month_day{month{i}, day{32}}.ok())) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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...] |