datetime questions

Niklasro niklasro at gmail.com
Tue Sep 7 13:27:23 EDT 2010


Hello
Learning python datetime somewhat similar to SQL type timestamp my
attempt creating a 24 h 2 months ago is

str(datetime.now () - timedelta (days = 60)) +' cron '+
str(datetime.now () - timedelta (days = 59))

Do you agree? Can I improve this declaration?
Regards
Niklas Rosencrantz



More information about the Python-list mailing list