putting date strings in order

Paul Rubin http
Mon May 11 23:30:17 EDT 2009


noydb <jenn.duerr at gmail.com> writes:
> Anyone have any good ideas?  I was curious to see what people came up
> with.

Is this a homework assignment?  Some hints:

1) figure out how to compare two month names for chronological order,
   leaving out the issue of the starting month not being january.
2) figure out how to adjust for the starting month.  The exact
   semantics of the "%" operator might help do this concisely.



More information about the Python-list mailing list