gpt4 book ai didi

c# - DateTime.Now 占 DST

转载 作者:行者123 更新时间:2023-12-03 19:08:41 27 4
gpt4 key购买 nike

我的 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com