DateTime.UtcNow显示比PST时间晚8小时要早4小时的原因是什么?

huangapple go评论66阅读模式
英文:

Why is DateTime.UtcNow showing 4 hours behind instead of 8 hours ahead of PST time?

问题

DateTime.UtcNow显示比太平洋标准时间提前8小时的时候要晚4小时的原因是什么?

Console.WriteLine("UtcNow: " + DateTime.UtcNow.ToString());
Console.WriteLine("Now (Pacific Time): " + DateTime.Now.ToString());

输出

UtcNow: 2023年2月6日 下午8:17:50

Now(太平洋时间):2023年2月6日 下午12:17:50

英文:

Why is DateTime.UtcNow showing 4 hours behind instead of 8 hours ahead of PST time?

Console.WriteLine("UtcNow: " + DateTime.UtcNow.ToString());
Console.WriteLine("Now (Pacific Time): " + DateTime.Now.ToString());

Output

UtcNow: 2/6/2023 8:17:50 PM

Now (Pacific Time): 2/6/2023 12:17:50 PM

答案1

得分: 1

12:00 PM is noon. 12:00 AM is midnight. 8:17 PM is eight hours after 12:17 PM.

英文:

12:00 PM is noon. 12:00 AM is midnight. 8:17 PM is eight hours after 12:17 PM.

huangapple
  • 本文由 发表于 2023年2月7日 04:21:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/75366175.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定