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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -