If I run a snippet like:
bool areTheyTheSame = DateTime.UtcNow == DateTime.Now
what will I get? Does the DateTime returned know its timezone such that I can compare?
My specific problem is that I'm trying to build a cache-like API. If it takes a DateTime AbsoluteExpiration, do I have to enforce that users of my API know whether to give me a UTC time or a timezone-based time?
[Edit] This SO question is extremely relevant to my issue as well: http://stackoverflow.com/questions/1688554/cache-add-absolute-expiration-utc-based-or-not