Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

datetimes to day of year python

>>> import datetime
>>> today = datetime.datetime.now()
>>> print today
2009-03-06 15:37:02.484000
>>> today.strftime('%j')
'065'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datetimes #day #year #python
ADD COMMENT
Topic
Name
4+1 =