Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 34) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DDates.py73 def _days_in_month(month, year): # number of days in month of year argument
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 argument
78 return _DAYS_BEFORE_MONTH[month-1] + (month > 2 and _is_leap(year))
82 _days_before_month(date.month, date.year) + \
92 del ans.ord, ans.month, ans.day, ans.year # un-initialize it
107 month = min(n//29 + 1, 12)
108 dbm = _days_before_month(month, year)
110 month = month - 1
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dunbirthday.py26 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
37 if month == 2 and calendar.isleap(year):
40 maxday = calendar.mdays[month]
45 bdaytuple = (year, month, day)
66 if bdaytuple < (y, month, day) <= todaytuple:
78 def format((year, month, day)): argument
79 return '%d %s %d' % (day, calendar.month_name[month], year)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcalendar.py22 def __init__(self, month): argument
23 self.month = month
25 return "bad month number %r; must be 1-12" % self.month
110 def weekday(year, month, day): argument
113 return datetime.date(year, month, day).weekday()
116 def monthrange(year, month): argument
119 if not 1 <= month <= 12:
120 raise IllegalMonthError(month)
121 day1 = weekday(year, month, 1)
122 ndays = mdays[month] + (month == February and isleap(year))
[all …]
D_strptime.py330 month = day = 1
359 month = int(found_dict['m'])
361 month = locale_time.f_month.index(found_dict['B'].lower())
363 month = locale_time.a_month.index(found_dict['b'].lower())
439 julian = datetime_date(year, month, day).toordinal() - \
445 month = datetime_result.month
448 weekday = datetime_date(year, month, day).weekday()
449 return (time.struct_time((year, month, day,
DBaseHTTPServer.py471 year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp)
474 day, self.monthname[month], year,
481 year, month, day, hh, mm, ss, x, y, z = time.localtime(now)
483 day, self.monthname[month], year, hh, mm, ss)
DCookie.py392 year, month, day, hh, mm, ss, wd, y, z = gmtime(now + future)
394 (weekdayname[wd], day, monthname[month], year, hh, mm, ss)
Dcookielib.py73 year, month, mday, hour, min, sec = tt[:6]
74 if ((year >= EPOCH_YEAR) and (1 <= month <= 12) and (1 <= mday <= 31) and
84 for month in MONTHS: MONTHS_LOWER.append(month.lower())
Dplistlib.py202 d.year, d.month, d.day,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcalendar.py22 def __init__(self, month): argument
23 self.month = month
25 return "bad month number %r; must be 1-12" % self.month
110 def weekday(year, month, day): argument
113 return datetime.date(year, month, day).weekday()
116 def monthrange(year, month): argument
119 if not 1 <= month <= 12:
120 raise IllegalMonthError(month)
121 day1 = weekday(year, month, 1)
122 ndays = mdays[month] + (month == February and isleap(year))
[all …]
DBaseHTTPServer.py468 year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp)
471 day, self.monthname[month], year,
478 year, month, day, hh, mm, ss, x, y, z = time.localtime(now)
480 day, self.monthname[month], year, hh, mm, ss)
/device/google/contexthub/firmware/os/platform/stm32/
Drtc.c259 uint8_t month; in rtcGetTime() local
269 month = (((dr >> 12) & 0x1) * 10) + ((dr >> 8) & 0xf) - 1; in rtcGetTime()
270 … time_s = (((((dr >> 4) & 0x3) * 10) + (dr & 0xF) - 1) + (month << 5) - adjust[month]) * 86400ULL; in rtcGetTime()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Ddatetimemodule.c190 days_in_month(int year, int month) in days_in_month() argument
192 assert(month >= 1); in days_in_month()
193 assert(month <= 12); in days_in_month()
194 if (month == 2 && is_leap(year)) in days_in_month()
197 return _days_in_month[month]; in days_in_month()
202 days_before_month(int year, int month) in days_before_month() argument
206 assert(month >= 1); in days_before_month()
207 assert(month <= 12); in days_before_month()
208 days = _days_before_month[month]; in days_before_month()
209 if (month > 2 && is_leap(year)) in days_before_month()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Ddatetimemodule.c190 days_in_month(int year, int month) in days_in_month() argument
192 assert(month >= 1); in days_in_month()
193 assert(month <= 12); in days_in_month()
194 if (month == 2 && is_leap(year)) in days_in_month()
197 return _days_in_month[month]; in days_in_month()
202 days_before_month(int year, int month) in days_before_month() argument
206 assert(month >= 1); in days_before_month()
207 assert(month <= 12); in days_before_month()
208 days = _days_before_month[month]; in days_before_month()
209 if (month > 2 && is_leap(year)) in days_before_month()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Ddatetime.h210 #define PyDate_FromDate(year, month, day) \ argument
211 PyDateTimeAPI->Date_FromDate(year, month, day, PyDateTimeAPI->DateType)
213 #define PyDateTime_FromDateAndTime(year, month, day, hour, min, sec, usec) \ argument
214 PyDateTimeAPI->DateTime_FromDateAndTime(year, month, day, hour, \
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Ddatetime.h210 #define PyDate_FromDate(year, month, day) \ argument
211 PyDateTimeAPI->Date_FromDate(year, month, day, PyDateTimeAPI->DateType)
213 #define PyDateTime_FromDateAndTime(year, month, day, hour, min, sec, usec) \ argument
214 PyDateTimeAPI->DateTime_FromDateAndTime(year, month, day, hour, \
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformSetupDxe/
DMain.vfi148month varid = Date.Month, // Note that it is a member of NULL, so the RTC will be the system re…
171 // If the day is 30 AND month is 2
178 // If the day is 29 AND month is 2 AND it year is NOT a leapyear
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/AcpiTables/Fadt/
DFadt1.0.aslc62 DAY_ALRM, // index to day-of-month alarm in RTC CMOS RAM
63 MON_ALRM, // index to month-of-year alarm in RTC CMOS RAM
DFadt2.0.aslc64 DAY_ALRM, // index to day-of-month alarm in RTC CMOS RAM
65 MON_ALRM, // index to month-of-year alarm in RTC CMOS RAM
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_calendar.py274 def check_weeks(self, year, month, weeks): argument
275 cal = calendar.monthcalendar(year, month)
Dtest_datetime.py543 self.assertEqual(dt.month, 3)
557 dt2 = self.theclass(dt.year, dt.month, dt.day)
598 for month, maxday in zip(range(1, 13), dim):
599 if month == 2 and isleap:
602 d = self.theclass(year, month, day)
609 a = self.theclass(a.year, a.month, a.day) # get rid of time parts
621 a = self.theclass(a.year, a.month, a.day) # get rid of time parts
745 year, month, day = 1999, 9, 19
746 ts = time.mktime((year, month, day, 0, 0, 0, 0, 0, -1))
749 self.assertEqual(d.month, month)
[all …]
Dtest_str.py303 month=8,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/wsgiref/
Dhandlers.py36 year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp)
38 _weekdayname[wd], day, _monthname[month], year, hh, mm, ss
/device/linaro/bootloader/edk2/OvmfPkg/AcpiTables/
DFacp.aslc62 DAY_ALRM, // index to day-of-month alarm in RTC CMOS RAM
63 MON_ALRM, // index to month-of-year alarm in RTC CMOS RAM
/device/linaro/bootloader/edk2/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/Facp/
DFacp.aslc76 … // index to day-of-month alarm in RTC CMOS …
77 … // index to month-of-year alarm in R…
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dcvslib.py329 month = unctime_monthmap[words[1]]
333 return time.mktime((year, month, day, hh, mm, ss, 0, 0, 0))

12