Re: Custom format a la datetime

2015-04-18 Thread Santiago Basulto
On Saturday, April 18, 2015 at 5:29:23 PM UTC-3, Peter Otten wrote: > santiago.basu...@gmail.com wrote: > > > Hello everybody. I'm writing a CLI program to do some search. It's an > > internal tool. I'd like to provide the option to my user to format the > > results as he/she'd like. Something sim

Re: Custom format a la datetime

2015-04-18 Thread Peter Otten
santiago.basu...@gmail.com wrote: > Hello everybody. I'm writing a CLI program to do some search. It's an > internal tool. I'd like to provide the option to my user to format the > results as he/she'd like. Something similar to strftime on the datetime > module. > > Example: > > from datetim

Custom format a la datetime

2015-04-18 Thread santiago . basulto
Hello everybody. I'm writing a CLI program to do some search. It's an internal tool. I'd like to provide the option to my user to format the results as he/she'd like. Something similar to strftime on the datetime module. Example: from datetime import datetime d = datetime.utcnow() d