I have a datetime timestamp of 2022-10-11 06:00:00
.
I am trying to take away ONE nanosecond and have it back in datetime format. So the desired output is:
`2022-10-11 05:59:59.999999999`
I have followed a few functions and conversions on stack overflow, but most don't get the precision correct. They convert the datetime into nanoseconds, take one away then convert it back, but then one hour is somehow added because of precision (or lack of precision)
Any help would be great!