I
IdleBrain
I am trying to convert long system clock time (1.2841535619381043E+17)
to Date Time as {{12/7/2007 17:21:22XXX.XXX } ie in order of us.
I receive clock time as string object type. So I have tried something
like:
strValue = Convert.ToString("1.2841535619381043E+17");
longValue = long.Parse(strValue, NumberStyles.Any);
dt = DateTime.FromFileTime(longValue);
The output was dt = "12/7/2007 17:21:22" and I have loosing datetime
resolution in the conversion.
Can someone please advise on a better way of conversion so that the
time resolution in us is not lost?
Thanks in advance.
to Date Time as {{12/7/2007 17:21:22XXX.XXX } ie in order of us.
I receive clock time as string object type. So I have tried something
like:
strValue = Convert.ToString("1.2841535619381043E+17");
longValue = long.Parse(strValue, NumberStyles.Any);
dt = DateTime.FromFileTime(longValue);
The output was dt = "12/7/2007 17:21:22" and I have loosing datetime
resolution in the conversion.
Can someone please advise on a better way of conversion so that the
time resolution in us is not lost?
Thanks in advance.