by @kodeazy
How to get current date time and day from timestamp?
- To get current
date time and day from timesgtamp
we usestrftime()
function. -
Below is the sample example.
from datetime import datetime datetime.fromtimestamp(1660392458.437512).strftime("%B %d, %Y %I:%M:%S , %A")
Output
'August 13, 2022 05:37:38 , Saturday'