Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

What is a DateTime's Ticks property relative to?

$
0
0

As we all know, the DateTime.Ticks property is the number of 100 nanosecond units since midnight, January 1, 0001. However, what timezone is it relative to? Is it local or UTC?

The reason I'm asking is that I have a case where DateTime.Now.Ticks is being transmitted to an embedded device and it internalizes that value to know what time it is. We've been assuming all along that the time is locale time but lately we've been running into conditions where when we attempt to do something with that time that it looks like it might be UTC. I've done the usual Google and so far have not yet found anything definitive one way or another, hence this question.

So, is Ticks relative to local or GMT midnight, Jan 1, 0001?


Richard Lewis Haggard


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>