Does calling DateTime.AddDays with a whole number always leave the time unchanged?
问题 Consider the following code which attempts to get a DateTime that's equivalent to the local time "midnight yesterday": DateTime midnightYesterday = DateTime.Today.AddDays(-1.0d); Will this always result in a DateTime with a time component of 00:00:00 -- regardless of any corner cases such as leap days, leap seconds, or what the local time zone is? More generally: Does calling DateTime.AddDays , passing a whole number as a parameter, always result in a DateTime being returned that has the