• <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結構的值轉換為一個time_t類型的值
            在32位系統中time_t是一個long。
            頭文件 <time.h>

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

            獲得系統時間。
            頭文件 <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
            );


            將時間轉換成一個字符串
            頭文件 <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
            );

            將時間轉換成一個字符串
            是個安全的版本,用來替代上面的函數
            頭文件 <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


            將時間值轉換成一個結構
            頭文件 <time.h>

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

            將時間值轉換成一個結構
            頭文件 <time.h>
            同上面函數的功能,是安全版本

            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
            );

            將時間轉換成本地時間。
            頭文件 <time.h>

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

            將時間轉換成本地時間。
            頭文件 <time.h>
            同上面函數的功能,是安全版本

            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函數
            頭文件 <time.h>
            clock_t clock( void );


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

            <2007年5月>
            293012345
            6789101112
            13141516171819
            20212223242526
            272829303112
            3456789

            常用鏈接

            留言簿(4)

            隨筆分類(64)

            隨筆檔案(58)

            文章分類(3)

            文章檔案(3)

            相冊

            收藏夾(9)

            C++零碎

            好友

            搜索

            •  

            積分與排名

            • 積分 - 161415
            • 排名 - 163

            最新評論

            閱讀排行榜

            評論排行榜

            国产精品gz久久久| 久久精品中文无码资源站| 99re久久精品国产首页2020| aaa级精品久久久国产片| 国产高潮久久免费观看| 亚洲国产精品综合久久一线 | AAA级久久久精品无码片| 国产精品无码久久综合 | 国产V综合V亚洲欧美久久| 亚洲欧美日韩精品久久| 亚洲性久久久影院| 91精品国产高清久久久久久io| 久久99久久成人免费播放| 久久这里只有精品首页| 国产精品嫩草影院久久| 亚洲AV日韩精品久久久久久 | 欧美精品福利视频一区二区三区久久久精品 | 久久综合色区| 久久综合九色综合精品| 久久99精品久久久久久水蜜桃 | 蜜臀久久99精品久久久久久小说 | 中文国产成人精品久久亚洲精品AⅤ无码精品 | 日韩精品久久无码中文字幕| 91精品国产91久久久久久青草 | 久久免费看黄a级毛片| 97精品久久天干天天天按摩| 亚洲人成无码网站久久99热国产| 久久久久亚洲AV无码网站| 青青久久精品国产免费看| 91精品观看91久久久久久| 久久久精品2019免费观看| 久久亚洲AV无码精品色午夜麻豆| 99久久精品九九亚洲精品| 久久精品99久久香蕉国产色戒| 女人高潮久久久叫人喷水| 免费精品久久久久久中文字幕 | 色婷婷久久久SWAG精品| 国产激情久久久久影院小草| 久久国产热精品波多野结衣AV| 久久久无码精品亚洲日韩京东传媒| 久久久久国产精品三级网|