C# DateTime.Now和DateTime.UtcNow的区别

  • DateTime.Now
    Gets a System.DateTime object that is set to the current date and time on this computer, expressed as the local time.
    获取本地时间。

  • DateTime.UtcNow
    Gets a System.DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
    获取标准时区的当前时间。

作者:WangJianqiu

出处:https://www.cnblogs.com/WangJianqiu/p/16741317.html

版权:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」许可协议进行许可。

posted @   六弦汤姆  阅读(321)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
more_horiz
keyboard_arrow_up light_mode palette
选择主题
点击右上角即可分享
微信分享提示