Next / Previous / Contents / Shipman's homepage

6.5. dayNo(): Date to day number

This function takes a date dt, as either a instance or a datetime.datetime instance, and returns the day number relative to January 0 of that year. For example, the day number of January 1 is 1, and the day number of December 31 is either 365 or 366.