2023年8月3日
摘要: int getUDiskSerial(std::vector<std::string>& vUsbSerial){ std::string cmd = "lsblk -o \"SERIAL,TRAN\" | grep usb "; FILE *fp; int len = 0; int idx = 0 阅读全文
posted @ 2023-08-03 14:25 北京开发 阅读(455) 评论(0) 推荐(0)
摘要: 1、日期时间转秒函数 用法: unsigned long long startTime = date2Second("2021-10-1 15:00:00"); time_t date2Second(std::string timeStr){ struct tm timeinfo; strptime 阅读全文
posted @ 2023-08-03 10:15 北京开发 阅读(355) 评论(1) 推荐(0)