User Tools

Site Tools


datetime_format

Differences

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

Link to this comparison view

Next revision
Previous revision
datetime_format [2026/08/12 08:47] – created 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"
 +print("date and time:", italian_date_time)        
 + 
 +mysql_date_time = now.strftime("%Y-%m-%d %H:%M:%S"
 +print("date and time:", mysql_date_time)
 </code> </code>
  
  
datetime_format.1786524457.txt.gz · Last modified: by gabriele