tomorrow in yyyymmdd format
Giulio Cespuglio
have.a.look at the-body.com
Tue Jun 18 18:25:16 EDT 2002
More information about the Python-list mailing list
Tue Jun 18 18:25:16 EDT 2002
- Previous message (by thread): tomorrow in yyyymmdd format
- Next message (by thread): tomorrow in yyyymmdd format
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello everybody,
We all know that if I want to get the present GMT date in yyyymmdd
format I should say
print time.strftime("%Y%m%d", time.gmtime() )
Now, what about tomorrow? Note that a simple string manipulation is
not the solution I'm looking for, as tomorrow might be next month,
next year, the 29th of February and such.
Do you confirm that there's nothing better than the following
silly-looking expression?
time.strftime("%Y%m%d", time.gmtime(time.time() + 60*60*24))
Thanks,
Giulio
_______________________________________________
To reply, please replace ".pizza." with "."
giulio.pizza.agostini(at)libero.pizza.it
- Previous message (by thread): tomorrow in yyyymmdd format
- Next message (by thread): tomorrow in yyyymmdd format
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list