Browse Source

Update: tc_common now2ms add commet

ruanshudong 2 years ago
parent
commit
157c362f5b
1 changed files with 9 additions and 4 deletions
  1. 9 4
      util/include/util/tc_common.h

+ 9 - 4
util/include/util/tc_common.h

@@ -363,6 +363,11 @@ public:
     * @return string 转换后的时间字符串
     */
     static string now2msstr();
+
+    /**
+     * @brief 毫秒时间转字符串描述
+     * @return string 转换后的时间字符串
+     */
     static string ms2str(int64_t ms);
     /**
     * @brief  时间转换成GMT字符串,GMT格式:Fri, 12 Jan 2001 18:18:18 GMT
@@ -1075,10 +1080,10 @@ namespace p
     template<>
     struct strto2<string>
     {
-        string operator()(const string &sStr)
-        {
-            return sStr;
-        }
+    	const string &operator()(const string &sStr)
+    	{
+    		return sStr;
+    	}
     };
 
 }