I am trying to get the current time in nanoseconds from the exact start of 01/01/2010
I thought about just multiplying the total seconds by 1e+9, however I don't know how accurate that would be.
I've also tried to use .total_nanoseconds()
, however that doesn't seem to work.
dateTimeObj = (datetime.datetime.now() - datetime.datetime(2010, 1, 1)).total_seconds()
print(dateTimeObj)