Skip to content

Instantly share code, notes, and snippets.

View akanik's full-sized avatar

Alexandra Kanik akanik

View GitHub Profile
@OmarArain
OmarArain / xldate_to_datetime.py
Created April 3, 2014 17:48
convert Excel serial date to python datetime.datetime
import datetime
def xldate_to_datetime(xldate):
temp = datetime.datetime(1900, 1, 1)
delta = datetime.timedelta(days=xldate)
return temp+delta