Message158207
| Author |
hynek |
| Recipients |
Martin.Morrison, belopolsky, hynek, swalker, vstinner |
| Date |
2012年04月13日.12:46:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334321207.36.0.981701575629.issue14157@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The point isn’t that time.strptime validates dates but that it uses datetime internally:
julian = datetime_date(year, month, day).toordinal() - \
datetime_date(year, 1, 1).toordinal() + 1
Is it worth to reimplement this functionality? It strikes easier to me to just use a different year if year is undefined and date == Feb 29. |
|