pyguymer3.convert_spreadsheet_to_datetime

pyguymer3.convert_spreadsheet_to_datetime(val, /)[source]

Convert an Excel spreadsheet date to a timezone-aware datetime object

This function converts an Excel spreadsheet date (which is an integer) to a timezone-aware datetime object.

Parameters:

val (int) – the Excel spreadsheet date

Returns:

ans – the timezone-aware datetime object

Return type:

datetime.datetime

Notes

Copyright 2017 Thomas Guymer [1]

References