Home
last modified time | relevance | path

Searched refs:ndays (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/chrono/src/naive/
Dinternals.rs126 pub fn ndays(&self) -> u32 { in ndays() method
500 assert_eq!(YearFlags::from_year(2014).ndays(), 365); in test_year_flags_ndays_from_year()
501 assert_eq!(YearFlags::from_year(2012).ndays(), 366); in test_year_flags_ndays_from_year()
502 assert_eq!(YearFlags::from_year(2000).ndays(), 366); in test_year_flags_ndays_from_year()
503 assert_eq!(YearFlags::from_year(1900).ndays(), 365); in test_year_flags_ndays_from_year()
504 assert_eq!(YearFlags::from_year(1600).ndays(), 366); in test_year_flags_ndays_from_year()
505 assert_eq!(YearFlags::from_year(1).ndays(), 365); in test_year_flags_ndays_from_year()
506 assert_eq!(YearFlags::from_year(0).ndays(), 366); // 1 BCE (proleptic Gregorian) in test_year_flags_ndays_from_year()
507 assert_eq!(YearFlags::from_year(-1).ndays(), 365); // 2 BCE in test_year_flags_ndays_from_year()
508 assert_eq!(YearFlags::from_year(-4).ndays(), 366); // 5 BCE in test_year_flags_ndays_from_year()
[all …]
Ddate.rs330 Of::new(weekord + prevflags.ndays() - delta, prevflags), in from_isoywd_opt()
334 let ndays = flags.ndays(); in from_isoywd_opt() localVariable
335 if ordinal <= ndays { in from_isoywd_opt()
341 NaiveDate::from_of(year + 1, Of::new(ordinal - ndays, nextflags)) in from_isoywd_opt()
/external/python/cpython3/Lib/
Dcalendar.py128 ndays = mdays[month] + (month == February and isleap(year))
129 return day1, ndays
189 day1, ndays = monthrange(year, month)
192 yield from range(1, ndays + 1)
193 days_after = (self.firstweekday - day1 - ndays) % 7
209 day1, ndays = monthrange(year, month)
211 days_after = (self.firstweekday - day1 - ndays) % 7
216 for d in range(1, ndays + 1):
/external/python/cpython2/Lib/
Dcalendar.py122 ndays = mdays[month] + (month == February and isleap(year))
123 return day1, ndays
185 day1, ndays = monthrange(year, month)
189 for d in range(1, ndays + 1):
191 days_after = (self.firstweekday - day1 - ndays) % 7
/external/rust/crates/chrono/src/
Dlib.rs1350 let mut ndays = 0; in num_days_from_ce() localVariable
1354 ndays -= excess * 146_097; in num_days_from_ce()
1357 ndays += ((year * 1461) >> 2) - div_100 + (div_100 >> 2); in num_days_from_ce()
1358 ndays + self.ordinal() as i32 in num_days_from_ce()
/external/rust/crates/chrono/src/format/
Dparsed.rs456 let ndays = firstweek in to_naive_date() localVariable
460 .checked_add_signed(OldDuration::days(i64::from(ndays))) in to_naive_date()
490 let ndays = firstweek in to_naive_date() localVariable
494 .checked_add_signed(OldDuration::days(i64::from(ndays))) in to_naive_date()
/external/python/dateutil/dateutil/
Drrule.py936 ndays, hour = self.__mod_distance(value=hour,
940 ndays, hour = divmod(hour+interval, 24)
942 if ndays:
943 day += ndays