英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论