I have a a C# line of code
string.Format("{0:D19}", DateTime.MaxValue.Ticks - DateTime.UtcNow.Ticks)
That I am trying to port over to Python. I'm having trouble understanding how to port two aspects:
I can't find an equivalent Python representation of DateTime.MaxValue.Ticks
and DateTime.UtcNow.Ticks
. I can get to a unix timestamp, but to my understanding, that is differnet than the C# Ticks
object.
Does anyone have any pointers to porting the above C# code to Python?