日期与时间
struct tm {
int tm_sec; /* 秒 – 取值区间为[0,59] */
int tm_min; /* 分 - 取值区间为[0,59] */
int tm_hour; /* 时 - 取值区间为[0,23] */
int tm_mday; /* 一个月中的日期...
分类:
其他好文 时间:
2014-07-22 23:03:55
阅读次数:
279
time_t SystemTimeToTime_t( const SYSTEMTIME& st )
{
tm temptm = {st.wSecond,
st.wMinute,
st.wHour,
st.wDay,
st.wMonth - 1,
st.wYear - 1900,
st...
分类:
其他好文 时间:
2014-07-22 23:02:34
阅读次数:
599
//Processing date
struct tm time;
std::string date;
char dateBuff[128] = {0};
time.tm_year = atoi(md_date.getString().substr(0,4).c_str()) - 1900;
time.tm_mon = atoi(md_date.getString().subs...
分类:
其他好文 时间:
2014-05-14 21:52:15
阅读次数:
248
1.powershellwindow自带。。右下角搜索。。powershell2.conemuhttps://code.google.com/p/conemu-maximus5/wiki/Downloads?tm=23cmderhttp://bliker.github.io/cmder/4.cygw...
目标:
编译Apache Hadoop2.2.0在win7x64环境下的Eclipse插件
环境:
win7x64家庭普通版
eclipse-jee-kepler-SR1-win32-x86_64.zip
Apache Ant(TM) version 1.8.4 compiled on May 22 2012
java version "1.7.0_45...
很久不写 BO-KE 了,来一篇吧,记住这个成功的一刻,把几个主要文件贴出来:
core-site.xml:
fs.defaultFS
hdfs://fc20:9000
hadoop.tmp.dir
/home/ljq/hadoop/tm...
分类:
其他好文 时间:
2014-05-09 00:35:27
阅读次数:
342
今天再次深刻领悟这个技能。tm竟然忘记博客园的用户名了。。。。
分类:
其他好文 时间:
2014-05-08 21:13:59
阅读次数:
281
#include //* 方法一 time_t tt =
time(NULL);//这句返回的只是一个时间cuo tm* t= localtime(&tt); printf("%d-%02d-%02d
%02d:%02d:%02d\n", t->tm_year + 1900, t->tm_mon.....
分类:
编程语言 时间:
2014-05-07 02:02:51
阅读次数:
540
tm结构体的定义在time.h里面
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
/*...
分类:
系统相关 时间:
2014-05-06 22:26:46
阅读次数:
474