Posted By

magicrebirth on 01/14/14


Tagged


Versions (?)

python pretty date print


 / Published in: Python
 

  1. print today.strftime('We are the %d, %b %Y')
  2. 'We are the 22, Nov 2008'
  3.  
  4. Eg in Django:
  5.  
  6. >>> k.updated_at.strftime('Last updated on %d, %b %Y, %H:%m')
  7. 'Last updated on 14, May 2013, 15:05'

Report this snippet  

You need to login to post a comment.