Lines Matching refs:day
273 """Calculate the Julian day based on the year, week of the year, and day of
278 # easier to just shift the view to Sunday being the first day of the
283 # Need to watch out for a week 0 (when the first day of the year is not
294 """Calculate the Julian day based on the ISO 8601 year, week, and weekday.
356 month = day = 1
374 # worthless without day of the week
395 day = int(found_dict['d'])
508 if year is None and month == 2 and day == 29:
515 # If we know the week of the year and what day of that week, we can figure
516 # out the Julian day of the year.
531 # calculation and thus could have different value for the day of
533 # Need to add 1 to result since first day of the year is 1, not 0.
534 julian = datetime_date(year, month, day).toordinal() - \
536 else: # Assume that if they bothered to include Julian day (or if it was
543 day = datetime_result.day
545 weekday = datetime_date(year, month, day).weekday()
555 return (year, month, day,