Skip to navigation
Get date today with python datetime
15.06.15
import datetime today = datetime.date.today() print today print 'ctime:', today.ctime() print 'tuple:', today.timetuple() print 'ordinal:', today.toordinal() print 'Year:', today.year print 'Mon :', today.month print 'Day :', today.day
http://pymotw.com/2/datetime/
Reply
Anonymous
Information Epoch 1732574878
Avoid captive user interfaces.
Home
Notebook
Contact us