Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

timestamp

COleDateTime: 秒级
SYSTEMTIME: 毫秒
FILETIME: 微秒(?)
DosFILETIME(?): 两秒


	inline static CString ShowTimestampPrefix()
	{
		if(!bTimestamp)
			return NULL;

		SYSTEMTIME sysdtNow;
		::GetLocalTime(&sysdtNow);
		COleDateTime dtNow = sysdtNow;
		CString strResult = dtNow.Format(DEFAULT_TIMEFORMAT);
		if(strResult.Find(_T("%_")))
		{
			CString strMillSecond;
			strMillSecond.Format(_T("%03d"), sysdtNow.wMilliseconds);
			strResult.Replace(_T("%_"), strMillSecond);
		}
		return strResult;
	}

Tags: 工作
Subscribe

  • 吃了豹子胆敢拆南大

    城市规划得污七八糟,现在来打汉口路的主意,真是太 TMD 了! http://news.163.com/08/1120/14/4R6U83KD00011SM9.html 南京:要大学,还是要大路?…

  • BP 1st year

    Basic Program is a reading program from UChicago. The information can be found here [1] and currently it is open for signing up for the next year…

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments