Since it's such a short snippet, I'll keep this post nice and simple.
1.
from
email.utils
import
parsedate_tz
2.
print
parsedate_tz(
'Fri, 15 May 2009 17:58:28 +0700'
)
That's it!
Mainly notes to future-Twig (and for anyone else who may find them useful)
If you've found one or more of my blog posts helpful, why not say thanks by buying me a coffee or beer?
Since it's such a short snippet, I'll keep this post nice and simple.
1.
from
email.utils
import
parsedate_tz
2.
print
parsedate_tz(
'Fri, 15 May 2009 17:58:28 +0700'
)
That's it!