https://mixrolikus.cc/video/kgA-IdFrV1g/converting-a-datetime-object-to-an-integer-python