datetime module : datetime « Buildin Module « Python Tutorial






from datetime import datetime
d = datetime(datetime.now().year, datetime.now().month, datetime.now().day,11, 59, 0 )
print d








14.3.datetime
14.3.1.Creating a New Date
14.3.2.Date Operations
14.3.3.datetime module