2025年11月16日

c# 获取当前时间

摘要: void Main() { var time = GetNetworkTime(); time.Dump(); } public static DateTime GetNetworkTime(string ntpServer = "cn.pool.ntp.org") { try { // NTP消息 阅读全文

posted @ 2025-11-16 18:36 空明流光 阅读(12) 评论(0) 推荐(0)

导航