2 ms·
I really like the idea of this, I'm getting some good results and some not so good. One that fails rather badly: format dates django templates Returns simply
by nicpottier 14y ago
I really like the idea of this, I'm getting some good results and some not so good.
One that fails rather badly:
format dates django templates
Returns simply "date", despite StackOverflow having lots of hits:
http://stackoverflow.com/search?q=format+dates+django+templates http://stackoverflow.com/search?q=format+dates+django+templa...
But some others are super cool:
create datetime from epoch
>>> datetime.datetime.fromtimestamp(1284286794)
One suggestion is that by default I would include the link to the stackoverflow page.
Some color might be nice to make it extra sexy, look at the colorama package to do it easily cross platform.
- gleitz 14y agoThanks for playing with it. Sometimes the first answer isn't the greatest but -p2 or -p3 will get it. In this case the following command gets you closer: howdoi format dates django templates -p3 Excellent idea for colorization! I've already got that suggestion on the github page -> https://github.com/gleitz/howdoi/issues/4 https://github.com/gleitz/howdoi/issues/4