• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 58,  comments - 75,  trackbacks - 0
            將tm結(jié)構(gòu)的值轉(zhuǎn)換為一個(gè)time_t類型的值
            在32位系統(tǒng)中time_t是一個(gè)long。
            頭文件 <time.h>

            time_t mktime(
               struct tm *timeptr
            );
            __time32_t _mktime32(
               struct tm *timeptr
            );
            __time64_t _mktime64(
               struct tm *timeptr
            );

            獲得系統(tǒng)時(shí)間。
            頭文件 <time.h>
            In Visual C++ 2005, time is a wrapper for _time64 and time_t is, by default, equivalent to __time64_t.
            If you need to force the compiler to interpret time_t as the old 32-bit time_t, you can define _USE_32BIT_TIME_T.
            This is not recommended because your application may fail after January 18, 2038; the use of this macro is not allowed on 64-bit platforms.

            time_t time(
               time_t *timer
            );
            __time32_t _time32(
               __time32_t *timer
            );
            __time64_t _time64(
               __time64_t *timer
            );


            將時(shí)間轉(zhuǎn)換成一個(gè)字符串
            頭文件 <time.h>

            char *ctime(
               const time_t *timer
            );
            char *_ctime32(
               const __time32_t *timer )
            ;
            char *_ctime64(
               const __time64_t *timer )
            ;
            wchar_t *_wctime(
               const time_t *timer
            );
            wchar_t *_wctime32(
               const __time32_t *timer
            );
            wchar_t *_wctime64(
               const __time64_t *timer
            );

            將時(shí)間轉(zhuǎn)換成一個(gè)字符串
            是個(gè)安全的版本,用來(lái)替代上面的函數(shù)
            頭文件 <time.h>

            errno_t ctime_s(
               char* buffer,
               size_t sizeInBytes,
               const time_t *time
            );
            errno_t _ctime32_s(
               char* buffer,
               size_t sizeInBytes,
               const __time32_t *time
            );
            errno_t _ctime64_s(
               char* buffer,
               size_t sizeInBytes,
               const __time64_t *time )
            ;
            errno_t _wctime_s(
               wchar_t* buffer,
               size_t sizeInWords,
               const time_t *time
            );
            errno_t _wctime32_s(
               wchar_t* buffer,
               size_t sizeInWords,
               const __time32_t *time
            );
            errno_t _wctime64_s(
               wchar_t* buffer,
               size_t sizeInWords,
               const __time64_t *time
            );
            template <size_t size>
            errno_t _ctime32_s(
               char (&buffer)[size],
               const __time32_t *time
            ); // C++ only
            template <size_t size>
            errno_t _ctime64_s(
               char (&buffer)[size],
               const __time64_t *time
            ); // C++ only
            template <size_t size>
            errno_t _wctime32_s(
               wchar_t (&buffer)[size],
               const __time32_t *time
            ); // C++ only
            template <size_t size>
            errno_t _wctime64_s(
               wchar_t (&buffer)[size],
               const __time64_t *time
            ); // C++ only


            將時(shí)間值轉(zhuǎn)換成一個(gè)結(jié)構(gòu)
            頭文件 <time.h>

            struct tm *gmtime(
               const time_t *timer
            );
            struct tm *_gmtime32(
               const time32_t *timer
            );
            struct tm *_gmtime64(
               const __time64_t *timer
            );

            將時(shí)間值轉(zhuǎn)換成一個(gè)結(jié)構(gòu)
            頭文件 <time.h>
            同上面函數(shù)的功能,是安全版本

            errno_t _gmtime_s(
               struct tm* _tm,
               const __time_t* time
            );
            errno_t _gmtime32_s(
               struct tm* _tm,
               const __time32_t* time
            );
            errno_t _gmtime64_s(
               struct tm* _tm,
               const __time64_t* time
            );

            將時(shí)間轉(zhuǎn)換成本地時(shí)間。
            頭文件 <time.h>

            struct tm *localtime(
               const time_t *timer
            );
            struct tm *_localtime32(
               const __time32_t *timer
            );
            struct tm *_localtime64(
               const __time64_t *timer
            );

            將時(shí)間轉(zhuǎn)換成本地時(shí)間。
            頭文件 <time.h>
            同上面函數(shù)的功能,是安全版本

            errno_t _localtime_s(
               struct tm* _tm,
               const time_t *time
            );
            errno_t _localtime32_s(
               struct tm* _tm,
               const time32_t *time
            );
            errno_t _localtime64_s(
               struct tm* _tm,
               const _time64_t *time
            );

            clock函數(shù)
            頭文件 <time.h>
            clock_t clock( void );


            posted on 2007-05-22 10:00 walkspeed 閱讀(3046) 評(píng)論(0)  編輯 收藏 引用 所屬分類: C++語(yǔ)言

            <2008年2月>
            272829303112
            3456789
            10111213141516
            17181920212223
            2425262728291
            2345678

            常用鏈接

            留言簿(4)

            隨筆分類(64)

            隨筆檔案(58)

            文章分類(3)

            文章檔案(3)

            相冊(cè)

            收藏夾(9)

            C++零碎

            好友

            搜索

            •  

            積分與排名

            • 積分 - 160837
            • 排名 - 163

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            四虎国产精品成人免费久久| 精品国产VA久久久久久久冰| 久久久精品免费国产四虎| 久久国产欧美日韩精品| 丰满少妇高潮惨叫久久久| 亚洲国产二区三区久久| 久久久久精品国产亚洲AV无码| 久久国产乱子伦免费精品| 久久涩综合| 免费观看成人久久网免费观看| 一级女性全黄久久生活片免费 | 国产精品成人精品久久久| 久久久久亚洲AV无码观看| 国产精品欧美久久久天天影视| 国产亚洲色婷婷久久99精品91| 久久久久久久久久久久久久| 久久99亚洲综合精品首页| 久久精品夜夜夜夜夜久久| 久久乐国产综合亚洲精品| 国产福利电影一区二区三区,免费久久久久久久精| 国内精品久久久久影院网站 | 久久精品国产亚洲AV忘忧草18| 久久综合综合久久狠狠狠97色88| 国产aⅴ激情无码久久| 久久久久无码精品国产app| 国产精品久久久久久| 一本一道久久综合狠狠老| 亚洲人成网站999久久久综合| 999久久久无码国产精品| 中文字幕人妻色偷偷久久 | 免费国产99久久久香蕉| 久久99国产综合精品女同| 伊人久久精品无码av一区| 国内精品久久国产| 久久毛片一区二区| 狠狠色丁香久久婷婷综合蜜芽五月| 久久国产热这里只有精品| 国内精品久久久久久中文字幕| 99久久99久久精品国产| 欧美久久久久久精选9999| 久久天天日天天操综合伊人av|