Linux 多线程 C++ 工具库 liblmp_tool --编译器选项 timeZone 类
发布时间
阅读量:
阅读量
实现了localtime 和 UTCtime的转换:
基于Linux的操作系统环境下的多线程程序设计支持工具库 liblmp_tool github: https://github.com/Dwyane05/liblmp_tool
Timezone类分析:
包含头文件;实现了对localtime和utctime的转换处理;采用了智能指针机制shard_ptr来处理date类型的数据
/*
- Use of this source code is governed by a BSD-style license
- that can be found in the License file.
- TimeZone.h
- Created on: May 30, 2019
- Author: cuiyongfei
*/
#ifndef LMP_TOOL_TIMEZONE_H
#define LMP_TOOL_TIMEZONE_H
#include "copyable.h"
#include
#include <time.h>
namespace lmp_tool
{
// 时间带(1970~2030)
class TimeZone : public lmp_tool::copyable
{
pu
全部评论 (0)
还没有任何评论哟~
