From a4f57bf9dda3d52e04f537a2ca24db95761eb888 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 11 十二月 2020 11:34:14 +0800 Subject: [PATCH] Revert "Merge branch 'CJL-NEW' into NewFilePath" --- HDL_ON/Common/Utlis.cs | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/HDL_ON/Common/Utlis.cs b/HDL_ON/Common/Utlis.cs index e746173..906212b 100644 --- a/HDL_ON/Common/Utlis.cs +++ b/HDL_ON/Common/Utlis.cs @@ -2,6 +2,8 @@ using Shared; using System.Text.RegularExpressions; using System.Text; +using System.Collections.Generic; +using System.Collections; namespace HDL_ON { @@ -303,15 +305,16 @@ } /// <summary> - /// 鑾峰彇褰撳墠鏃堕棿鎴冲�� - /// </summary> - /// <returns></returns> + /// + /// </summary> + /// <param name="isMilliseconds">鏄惁寰</param> + /// <returns></returns> public static string GetTimestamp(bool isMilliseconds = true) { System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 褰撳湴鏃跺尯 if (isMilliseconds) { - return ((long)(DateTime.Now - startTime).TotalMilliseconds).ToString(); // 鐩稿樊绉掓暟 + return ((long)(DateTime.Now - startTime).TotalMilliseconds).ToString(); // 鐩稿樊寰鏁� } else { @@ -330,4 +333,5 @@ } + } -- Gitblit v1.8.0