File size: 208 Bytes
7017395
 
 
 
 
 
1
2
3
4
5
6
7
import time
from datetime import datetime

current_timestamp = int(time.time())
human_readable_timestamp = datetime.utcfromtimestamp(current_timestamp).strftime('%Y-%m-%d-%H')
print(human_readable_timestamp)