Dates are easily constructed and formatted : Date Time : Development PYTHON examples


PYTHON examples » Development » Date Time »

 

Dates are easily constructed and formatted


Dates are easily constructed and formatted


#Dates and Times


from datetime import date
now = date.today()
print now

print now.strftime("%m-%d-%y. %d %b %Y is a %A on the %d day of %B.")

          
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Development
» Date Time


Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0