{"id":15242,"date":"2022-09-18T00:32:51","date_gmt":"2022-09-17T16:32:51","guid":{"rendered":"https:\/\/www.bookcard.net\/wordpress\/?p=15242"},"modified":"2022-09-18T00:32:51","modified_gmt":"2022-09-17T16:32:51","slug":"android_studio_ndk_time","status":"publish","type":"post","link":"https:\/\/www.bookcard.net\/wordpress\/android_studio_ndk_time\/","title":{"rendered":"Android Studio NDK-\u6642\u9593"},"content":{"rendered":"<figure id=\"attachment_15243\" aria-describedby=\"caption-attachment-15243\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2022\/09\/Android_Studio_NDK_TIME.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-15243\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2022\/09\/Android_Studio_NDK_TIME.jpg\" alt=\"Android Studio NDK-\u6642\u9593\" width=\"1280\" height=\"800\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2022\/09\/Android_Studio_NDK_TIME.jpg 1280w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2022\/09\/Android_Studio_NDK_TIME-300x188.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2022\/09\/Android_Studio_NDK_TIME-768x480.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a><figcaption id=\"caption-attachment-15243\" class=\"wp-caption-text\">Android Studio NDK-\u6642\u9593<\/figcaption><\/figure>\n<p>\u300e\u897f\u66c6\u300f \u5373\u300e\u5112\u7565\u66c6\u300f, \u96fb\u8166\u5167\u7f6e\u786c\u4ef6\u6642\u9418,\u5f97\u4ee5\u5b58\u5132\u6642\u9593.<\/p>\n<ol>\n<li>\u9996\u5148\u53d6\u300e\u683c\u6797\u5a01\u6cbb\u6a19\u51c6\u6642\u9418\u300fGMT.<\/li>\n<\/ol>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">time_t _time;<\/td>\n<\/tr>\n<tr>\n<td width=\"553\">time(&amp;_time);<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol start=\"2\">\n<li>\u300e\u683c\u6797\u5a01\u6cbb\u6a19\u51c6\u6642\u9418\u300f\u8f49\u300e\u672c\u5730\u6642\u9418\u300f, \u636e\u6642\u5340\u8abf\u6574\u6642\u9418.<\/li>\n<\/ol>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">tm * _tm;<\/td>\n<\/tr>\n<tr>\n<td width=\"553\">_tm =\u00a0 localtime(&amp;_time);<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>tm\u5c07\u300e\u672c\u5730\u6642\u9418\u300f\u5206\u89e3\u70ba\u300e\u5e74\u300f\u300e\u6708\u300f\u300e\u65e5\u300f\u300e\u6642\u300f\u300e\u5206\u300f\u300e\u79d2\u300f\u300e\u79ae\u62dc\u300f.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"132\">struct tm{<\/td>\n<td width=\"421\">\u7c21\u8ff0<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_year;<\/td>\n<td width=\"421\">1900 + \u5e74<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_mon;<\/td>\n<td width=\"421\">\u6708 0~11<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_mday;<\/td>\n<td width=\"421\">\u65e5 1~31<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_hour;<\/td>\n<td width=\"421\">\u6642 0~23<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_min<\/td>\n<td width=\"421\">\u5206 Minute 0~59<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_sec;<\/td>\n<td width=\"421\">\u79d2 second 0~60, 60\u70ba\u6f64\u79d2,\u5929\u6587\u66c6\u6821\u51c6.<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_wday;<\/td>\n<td width=\"421\">\u79ae\u62dc, 0=\u79ae\u62dc\u65e5,1=\u79ae\u62dc\u58f9,2=\u79ae\u62dc\u8cb3,3=\u79ae\u62dc\u4e09,4=\u79ae\u62dc\u8086,5=\u79ae\u62dc\u4f0d,6=\u79ae\u62dc\u9678<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_yday;<\/td>\n<td width=\"421\">\u5e74\u65e5,(0~365),\u58f9\u6708\u58f9=0,\u62fe\u8cb3\u6708\u53c3\u62fe=365<\/td>\n<\/tr>\n<tr>\n<td width=\"132\">int tm_isdst;<\/p>\n<p>}<\/td>\n<td width=\"421\">\u590f\u4ee4\u65f6\u00a0 Daylight saving time,<\/p>\n<p>DST=0\u5187\u590f\u4ee4\u65f6,<\/p>\n<p>DST&gt;0\u6709\u590f\u4ee4\u65f6,<\/p>\n<p>DST&lt;0\u590f\u4ee4\u65f6\u5187\u6548<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300e\u897f\u66c6\u300f \u5373\u300e\u5112\u7565\u66c6\u300f, \u96fb\u8166\u5167\u7f6e\u786c\u4ef6\u6642\u9418,\u5f97\u4ee5\u5b58\u5132\u6642\u9593. \u9996\u5148\u53d6\u300e\u683c\u6797\u5a01\u6cbb\u6a19\u51c6\u6642\u9418\u300fGMT. time_t  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/android_studio_ndk_time\/\" class=\"more-link\">\u7e7c\u7e8c\u95b1\u8b80 <span class=\"screen-reader-text\">Android Studio NDK-\u6642\u9593<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,13],"tags":[2,42],"class_list":["post-15242","post","type-post","status-publish","format-standard","hentry","category-android","category-pc","tag-android","tag-computer","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/15242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/comments?post=15242"}],"version-history":[{"count":1,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/15242\/revisions"}],"predecessor-version":[{"id":15244,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/15242\/revisions\/15244"}],"wp:attachment":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/media?parent=15242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/categories?post=15242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/tags?post=15242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}