#!/usr/bin/python3
import time
import datetime
start = "10/03/2021 08:00:00"
timestmp_start=int(time.mktime(datetime.datetime.strptime(start, "%d/%m/%Y %H:%M:%S").timetuple()))*1000
date_start=datetime.datetime.fromtimestamp(timestmp_start/1000).strftime("%d/%m/%Y %H:%M:%S")
#output:
#timestmp_start: 1615343400000
#date_start: "10/03/2021 08:00:00"
Code Example |
---|
Html :: html article |
Html :: tab content bootstrap 4 |
Html :: html include html page |
Html :: same form two submits |
Html :: block view source html |
Html :: bootstrap 5 hamburger menu |
Html :: table design in html |
Html :: html interview |
Html :: how to create seprate flex box for adding items into the box |
Html :: html how to give false link |
Html :: phone number validation html |
Html :: link that scrolls down the page |
Html :: html with new line |
Html :: two buttons in same form |
Html :: itextsharp html to pdf |
Html :: how to do a line break in html |
Html :: js input just audio files |
Html :: html online editor |
Html :: div class link |
Html :: add current date in report odoo |
Html :: bootstrap 5 tooltip html |
Html :: crawler get text, not get html |
Html :: how to append a variable to html |
Html :: Text with colour bold |
Html :: html adding image |
Html :: pdf to html python |
Html :: HTML - The Head Element |
Html :: HTML HOW TO MAKE QUOTE |
Html :: react-burger-menu right |
Html :: input group |