我的 DateTime 对象使用 DateTime.Now 分配了本地时间。我想知道一旦夏令时开始/结束,这个对象是否会给出正确的当前本地时间。或者我需要解决方法吗?
最佳答案
是的,DateTime.Now以本地机器时间为准。
Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
关于c# - DateTime.Now 占 DST,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19279734/