User Tools

Site Tools


datetime_format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
datetime_format [2026/08/27 06:51] gabrieledatetime_format [2026/08/27 06:53] (current) gabriele
Line 18: Line 18:
 print("time:", time) print("time:", time)
  
-date_time = now.strftime("%m/%d/%Y%H:%M:%S")+date_time = now.strftime("%m/%d/%Y %H:%M:%S")
 print("date and time:",date_time) print("date and time:",date_time)
  
-italian_date_time = now.strftime("%d/%m/%Y%H:%M:%S")+italian_date_time = now.strftime("%d/%m/%Y %H:%M:%S")
 print("date and time:", italian_date_time)        print("date and time:", italian_date_time)       
  
-mysql_date_time = now.strftime("%Y-%m-%d%H:%M:%S")+mysql_date_time = now.strftime("%Y-%m-%d %H:%M:%S")
 print("date and time:", mysql_date_time) print("date and time:", mysql_date_time)
 </code> </code>
  
  
datetime_format.txt · Last modified: by gabriele