C# strange with DateTime -
i got strange result for:
console.writeline(new datetime(1296346155).tostring()); result is:
01.01.0001 0:02:09
but not right!
i parsed value 1296346155 file. said in utc;
please explain;)
thank help!)))
datetime expects "a date , time expressed in number of 100-nanosecond intervals have elapsed since january 1, 0001 @ 00:00:00.000 in gregorian calendar." (from msdn)
this question shows how can convert unix timestamp datetime.
Comments
Post a Comment