boost posix_time 获取当前时间
来源:互联网 发布:经传软件跟风统计 编辑:程序博客网 时间:2024/05/29 19:43
#include <boost/date_time/posix_time/posix_time.hpp>//时间库#define BOOST_DATE_TIME_SOURCEstring strTime = boost::posix_time::to_iso_string(boost::posix_time::second_clock::local_time());int pos = strTime.find('T');strTime.replace(pos,1,std::string("-"));strTime.replace(pos + 3,0,std::string(":"));strTime.replace(pos + 6,0,std::string(":"));cout<<strTime<<endl;
0 0
- boost posix_time 获取当前时间
- BOOST 日期时间库 之 时间点 posix_time 3/3
- boost posix_time格式化输出
- boost 获取当前日期和时间
- boost 获取当前时间戳(秒or毫秒)
- boost 获取当前日期
- boost posix_time/time_duration/date 的基本用法
- boost的posix_time用法详解01
- 用Boost获得当前时间
- boost 获取时间
- boost获取时间戳
- boost库获取时间
- 获取系统当前时间
- 获取当前系统时间
- c++ 获取当前时间
- sql获取当前时间
- 获取当前系统时间
- JS获取当前时间
- android开发笔记之viewpager 基本使用方法
- Ansi C 函数库
- 13年微软
- 杭电1016 Prime Ring Problem(DFS)
- android 中bundle对象
- boost posix_time 获取当前时间
- 1125 pojBig Christmas Tree
- 14年迅雷
- Linux线程属性总结
- 大小端
- 敌兵布阵
- 网络知识基础必备
- 以前写的一个面向对象的贪吃蛇游戏
- 【阅读】《Head First Javascript》第五章——循环