Explorar el Código

Merge branch 'master' of http://119.29.133.113:3001/yingjiekeji/robot

zxs hace 2 días
padre
commit
2ffbaac466
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      robot/robotics/datetime.hpp

+ 9 - 0
robot/robotics/datetime.hpp

@@ -265,6 +265,15 @@ namespace robotics {
 				time_stamp_ = time;
 				return *this;
 			}
+          	/**
+			 * @brief 赋值
+			 * @param time
+			 * @return
+			 */
+			datetime& operator=(const int& time) {
+				time_stamp_ = time;
+				return *this;
+			}
 			/**
 			 * @brief 相减
 			 * @param value