{"id":93448,"date":"2020-04-06T08:23:10","date_gmt":"2020-04-06T00:23:10","guid":{"rendered":"http:\/\/4563.org\/?p=93448"},"modified":"2020-04-06T08:23:10","modified_gmt":"2020-04-06T00:23:10","slug":"%e5%a6%82%e4%bd%95%e5%b0%86%e5%a4%9a%e7%a7%8d%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f%e8%bd%ac%e5%8c%96%e6%88%90%e7%bb%9f%e4%b8%80%e6%a0%bc%e5%bc%8f%e5%91%a2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=93448","title":{"rendered":"\u5982\u4f55\u5c06\u591a\u79cd\u65f6\u95f4\u683c\u5f0f\u8f6c\u5316\u6210\u7edf\u4e00\u683c\u5f0f\u5462"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u4f55\u5c06\u591a\u79cd\u65f6\u95f4\u683c\u5f0f\u8f6c\u5316\u6210\u7edf\u4e00\u683c\u5f0f\u5462               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SlipStupig <\/span>  <span><i><\/i> 28<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9047\u5230\u4e86\u4e00\u4e2a\u56f0\u96be\uff0c\u9700\u8981\u5c06\u591a\u79cd\u65f6\u95f4\u5b57\u7b26\u4e32\u8f6c\u5316\u6210<code>datetime<\/code>\u5bf9\u8c61\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>2019-10-24 09:20:44 2020-04-13 2019-11-04  13:11 04 \u6708 13 \u65e5 10:41 2012 \u5e74 7 \u6708 13 \u65e5 ..... <\/code><\/pre>\n<p>\u672c\u6765\u4ee5\u4e3a\u633a\u7b80\u5355\uff0c\u4f46\u662f\u7531\u4e8e\u65f6\u95f4\u683c\u5f0f\u592a\u591a\u4e86\uff0c\u4e0d\u597d\u4e00\u4e2a\u4e2a\u53bb\u9002\u914d\uff0c\u6709\u4ec0\u4e48\u529e\u6cd5\u53ef\u4ee5\u81ea\u52a8\u8bc6\u522b\uff0c\u5e76\u4e14\u8f6c\u5316\u6210\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u5462\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1124844\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Trim21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             python-dateutil                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1124845\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : netnr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u6b63\u5219\u5339\u914d\u540e\u5728\u7ec4\u88c5\uff0c\u9996\u5148\u66ff\u6362\u4e24\u4e2a\u7a7a\u683c\u4e3a\u4e00\u4e2a\u7a7a\u683c<\/p>\n<p>d{4}-d{2}-d{2} d{2}:d{2}:d{2}<br \/>d{4}-d{2}-d{2}<br \/>d{4}-d{2}-d{2} d{2}:d{2}<br \/>d{2} \u6708 d{2} \u65e5 d{2}:d{2}<br \/>d{4} \u5e74 (.*) \u6708 (.*) \u65e5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1124846\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Cmdhelp <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             python-arrow                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1124847\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imanux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63a8\u8350\u4f7f\u7528 moment, \u6bd4 arrow \u8f7b\u91cf\u4e00\u4e9b.<\/p>\n<p>&#8220;`python<\/p>\n<p>def date_identify():<br \/> mixed = [<br \/> &#8216;2019-10-24 09:20:44&#8217;,<br \/> &#8216;2020-04-13&#8217;,<br \/> &#8216;2019-11-04 13:11&#8217;,<br \/> &#8217;04 \u6708 13 \u65e5 10:41&#8242;,<br \/> &#8216;2012 \u5e74 7 \u6708 13 \u65e5&#8217;,<br \/> ]<br \/> for m in mixed[:3]:<br \/> print(moment.date(m).format(&#8216;YYYYMMDD HH:mm:ss&#8217;))<\/p>\n<p> ch1 = mixed[3]<br \/> print(moment.date(ch1, &#8216;MM \u6708 DD \u65e5 HH:mm&#8217;).format(&#8216;YYYYMMDD HH:mm:ss&#8217;))<\/p>\n<p> ch1 = mixed[4]<br \/> print(moment.date(ch1, &#8216;YYYY \u5e74 M \u6708 DD \u65e5&#8217;).format(&#8216;YYYYMMDD HH:mm:ss&#8217;))<\/p>\n<p>&#8220;`<\/p>\n<p>\u5f53\u7136\u5982\u679c\u8fd8\u6709\u66f4\u591a\u7684\u683c\u5f0f, \u9700\u8981\u624b\u52a8\u4e00\u4e2a\u4e2a\u5339\u914d\u7684.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5c06\u591a\u79cd\u65f6\u95f4\u683c\u5f0f\u8f6c\u5316\u6210\u7edf\u4e00\u683c\u5f0f\u5462&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93448"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93448"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93448\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93448"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}