{"id":991104,"date":"2024-12-27T08:25:49","date_gmt":"2024-12-27T00:25:49","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/991104.html"},"modified":"2024-12-27T08:25:52","modified_gmt":"2024-12-27T00:25:52","slug":"python%e5%a6%82%e4%bd%95%e8%ae%a1%e7%ae%97%e6%97%a5%e6%9c%9f%e6%97%b6%e9%97%b4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/991104.html","title":{"rendered":"python\u5982\u4f55\u8ba1\u7b97\u65e5\u671f\u65f6\u95f4"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25065533\/8aaf7972-ba0d-4a25-bc51-bbb5368313f0.webp\" alt=\"python\u5982\u4f55\u8ba1\u7b97\u65e5\u671f\u65f6\u95f4\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u8ba1\u7b97\u65e5\u671f\u65f6\u95f4\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528datetime\u6a21\u5757\u8fdb\u884c\u65e5\u671f\u548c\u65f6\u95f4\u7684\u52a0\u51cf\u3001\u4f7f\u7528timedelta\u8fdb\u884c\u65f6\u95f4\u5dee\u8ba1\u7b97\u3001\u4ee5\u53ca\u5229\u7528dateutil\u5e93\u8fdb\u884c\u590d\u6742\u7684\u65e5\u671f\u64cd\u4f5c\u3002<\/strong> \u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528datetime\u6a21\u5757\u662f\u6700\u5e38\u89c1\u548c\u57fa\u672c\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u3002\u901a\u8fc7datetime\u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u65f6\u95f4\u3001\u5c06\u65e5\u671f\u65f6\u95f4\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32\u3001\u89e3\u6790\u5b57\u7b26\u4e32\u4e3a\u65e5\u671f\u65f6\u95f4\u5bf9\u8c61\u7b49\u3002\u6b64\u5916\uff0cdateutil\u5e93\u63d0\u4f9b\u4e86\u66f4\u591a\u9ad8\u7ea7\u529f\u80fd\uff0c\u4f8b\u5982\u89e3\u6790\u4e0d\u89c4\u5219\u7684\u65e5\u671f\u5b57\u7b26\u4e32\u3001\u5904\u7406\u65f6\u533a\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u8fdb\u884c\u65e5\u671f\u65f6\u95f4\u7684\u8ba1\u7b97\u548c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001DATETIME\u6a21\u5757\u7684\u57fa\u672c\u4f7f\u7528<\/h3>\n<\/p>\n<p><h4>1. \u83b7\u53d6\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u53ef\u4ee5\u4f7f\u7528<code>datetime<\/code>\u6a21\u5757\u7684<code>datetime.now()<\/code>\u65b9\u6cd5\u3002\u8be5\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u672c\u5730\u65e5\u671f\u548c\u65f6\u95f4\u7684<code>datetime<\/code>\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<p>current_datetime = datetime.now()<\/p>\n<p>print(&quot;Current date and time:&quot;, current_datetime)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u65e5\u671f\u548c\u65f6\u95f4\u7684\u683c\u5f0f\u5316<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>strftime<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5c06<code>datetime<\/code>\u5bf9\u8c61\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32\u3002\u901a\u8fc7\u6307\u5b9a\u4e0d\u540c\u7684\u683c\u5f0f\u4ee3\u7801\uff0c\u4f60\u53ef\u4ee5\u5b9a\u5236\u65e5\u671f\u548c\u65f6\u95f4\u7684\u8f93\u51fa\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">formatted_date = current_datetime.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<\/p>\n<p>print(&quot;Formatted date:&quot;, formatted_date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5e38\u7528\u7684\u683c\u5f0f\u4ee3\u7801\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>%Y<\/code>: \u56db\u4f4d\u6570\u7684\u5e74\u4efd<\/li>\n<li><code>%m<\/code>: \u4e24\u4f4d\u6570\u7684\u6708\u4efd<\/li>\n<li><code>%d<\/code>: \u4e24\u4f4d\u6570\u7684\u65e5\u671f<\/li>\n<li><code>%H<\/code>: \u4e24\u4f4d\u6570\u7684\u5c0f\u65f6\uff0824\u5c0f\u65f6\u5236\uff09<\/li>\n<li><code>%M<\/code>: \u4e24\u4f4d\u6570\u7684\u5206\u949f<\/li>\n<li><code>%S<\/code>: \u4e24\u4f4d\u6570\u7684\u79d2<\/li>\n<\/ul>\n<p><h4>3. \u89e3\u6790\u5b57\u7b26\u4e32\u4e3a\u65e5\u671f\u65f6\u95f4\u5bf9\u8c61<\/h4>\n<\/p>\n<p><p>\u76f8\u53cd\u7684\u64cd\u4f5c\u662f\u4f7f\u7528<code>strptime<\/code>\u65b9\u6cd5\uff0c\u5c06\u65e5\u671f\u65f6\u95f4\u7684\u5b57\u7b26\u4e32\u89e3\u6790\u4e3a<code>datetime<\/code>\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">date_string = &quot;2023-10-05 15:30:00&quot;<\/p>\n<p>parsed_date = datetime.strptime(date_string, &quot;%Y-%m-%d %H:%M:%S&quot;)<\/p>\n<p>print(&quot;Parsed date:&quot;, parsed_date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u65e5\u671f\u548c\u65f6\u95f4\u7684\u52a0\u51cf<\/h3>\n<\/p>\n<p><h4>1. \u4f7f\u7528timedelta\u8fdb\u884c\u7b80\u5355\u7684\u65e5\u671f\u65f6\u95f4\u52a0\u51cf<\/h4>\n<\/p>\n<p><p><code>timedelta<\/code>\u5bf9\u8c61\u8868\u793a\u4e24\u4e2a\u65e5\u671f\u65f6\u95f4\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u53ef\u4ee5\u7528\u4e8e\u65e5\u671f\u65f6\u95f4\u7684\u52a0\u51cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import timedelta<\/p>\n<h2><strong>\u589e\u52a010\u5929<\/strong><\/h2>\n<p>future_date = current_datetime + timedelta(days=10)<\/p>\n<p>print(&quot;Future date:&quot;, future_date)<\/p>\n<h2><strong>\u51cf\u5c115\u5c0f\u65f6<\/strong><\/h2>\n<p>past_time = current_datetime - timedelta(hours=5)<\/p>\n<p>print(&quot;Past time:&quot;, past_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8ba1\u7b97\u65e5\u671f\u65f6\u95f4\u5dee<\/h4>\n<\/p>\n<p><p><code>timedelta<\/code>\u8fd8\u53ef\u4ee5\u7528\u4e8e\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u65f6\u95f4\u4e4b\u95f4\u7684\u5dee\u5f02\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">date1 = datetime(2023, 10, 1)<\/p>\n<p>date2 = datetime(2023, 10, 5)<\/p>\n<p>difference = date2 - date1<\/p>\n<p>print(&quot;Difference in days:&quot;, difference.days)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001DATEUTIL\u5e93\u7684\u9ad8\u7ea7\u64cd\u4f5c<\/h3>\n<\/p>\n<p><h4>1. \u89e3\u6790\u590d\u6742\u7684\u65e5\u671f\u5b57\u7b26\u4e32<\/h4>\n<\/p>\n<p><p><code>dateutil<\/code>\u5e93\u7684<code>parser<\/code>\u6a21\u5757\u53ef\u4ee5\u5904\u7406\u66f4\u590d\u6742\u548c\u4e0d\u89c4\u5219\u7684\u65e5\u671f\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from dateutil import parser<\/p>\n<p>date_str = &quot;October 5, 2023, 3:30 PM&quot;<\/p>\n<p>parsed_date = parser.parse(date_str)<\/p>\n<p>print(&quot;Parsed date using dateutil:&quot;, parsed_date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5904\u7406\u65f6\u533a<\/h4>\n<\/p>\n<p><p><code>dateutil<\/code>\u7684<code>tz<\/code>\u6a21\u5757\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u65f6\u533a\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from dateutil import tz<\/p>\n<p>utc_zone = tz.tzutc()<\/p>\n<p>local_zone = tz.tzlocal()<\/p>\n<h2><strong>\u5c06\u5f53\u524d\u65f6\u95f4\u8f6c\u6362\u4e3aUTC<\/strong><\/h2>\n<p>utc_time = current_datetime.astimezone(utc_zone)<\/p>\n<p>print(&quot;Current time in UTC:&quot;, utc_time)<\/p>\n<h2><strong>\u5c06UTC\u65f6\u95f4\u8f6c\u6362\u4e3a\u672c\u5730\u65f6\u95f4<\/strong><\/h2>\n<p>local_time = utc_time.astimezone(local_zone)<\/p>\n<p>print(&quot;UTC time in local timezone:&quot;, local_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5176\u4ed6\u65e5\u671f\u65f6\u95f4\u64cd\u4f5c<\/h3>\n<\/p>\n<p><h4>1. \u83b7\u53d6\u65e5\u671f\u7684\u5404\u4e2a\u7ec4\u6210\u90e8\u5206<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4ece<code>datetime<\/code>\u5bf9\u8c61\u4e2d\u63d0\u53d6\u5e74\u4efd\u3001\u6708\u4efd\u3001\u65e5\u671f\u3001\u5c0f\u65f6\u3001\u5206\u949f\u548c\u79d2\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">year = current_datetime.year<\/p>\n<p>month = current_datetime.month<\/p>\n<p>day = current_datetime.day<\/p>\n<p>hour = current_datetime.hour<\/p>\n<p>minute = current_datetime.minute<\/p>\n<p>second = current_datetime.second<\/p>\n<p>print(f&quot;Year: {year}, Month: {month}, Day: {day}, Hour: {hour}, Minute: {minute}, Second: {second}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5224\u65ad\u95f0\u5e74<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7<code>calendar<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u5224\u65ad\u67d0\u4e00\u5e74\u662f\u5426\u4e3a\u95f0\u5e74\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import calendar<\/p>\n<p>year = 2024<\/p>\n<p>is_leap = calendar.isleap(year)<\/p>\n<p>print(f&quot;Is {year} a leap year?&quot;, is_leap)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u83b7\u53d6\u67d0\u6708\u7684\u5929\u6570<\/h4>\n<\/p>\n<p><p>\u540c\u6837\u4f7f\u7528<code>calendar<\/code>\u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u83b7\u53d6\u67d0\u4e2a\u6708\u7684\u5929\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">month_days = calendar.monthrange(2023, 10)[1]<\/p>\n<p>print(&quot;Number of days in October 2023:&quot;, month_days)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>1. \u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5de5\u4f5c\u65e5<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5de5\u4f5c\u65e5\u6570\u91cf\u3002\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u904d\u5386\u65e5\u671f\uff0c\u5e76\u6392\u9664\u5468\u672b\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import timedelta<\/p>\n<p>def workdays(d1, d2):<\/p>\n<p>    day_count = 0<\/p>\n<p>    while d1 &lt; d2:<\/p>\n<p>        if d1.weekday() &lt; 5:  # 0-4 are Monday to Friday<\/p>\n<p>            day_count += 1<\/p>\n<p>        d1 += timedelta(days=1)<\/p>\n<p>    return day_count<\/p>\n<p>start_date = datetime(2023, 10, 1)<\/p>\n<p>end_date = datetime(2023, 10, 15)<\/p>\n<p>print(&quot;Number of workdays:&quot;, workdays(start_date, end_date))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u81ea\u52a8\u5316\u7684\u5b9a\u65f6\u4efb\u52a1<\/h4>\n<\/p>\n<p><p>Python\u4e2d\u7684\u65e5\u671f\u65f6\u95f4\u8ba1\u7b97\u4e5f\u53ef\u4ee5\u7528\u4e8e\u81ea\u52a8\u5316\u4efb\u52a1\u7684\u8c03\u5ea6\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u8ba1\u7b97\u4e0b\u4e00\u4e2a\u6267\u884c\u65f6\u95f4\u6765\u5b9a\u65f6\u8fd0\u884c\u67d0\u4e2a\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def schedule_next_run(current_time, interval_hours):<\/p>\n<p>    next_run_time = current_time + timedelta(hours=interval_hours)<\/p>\n<p>    print(&quot;Next run scheduled at:&quot;, next_run_time)<\/p>\n<h2><strong>Schedule next run 3 hours from now<\/strong><\/h2>\n<p>schedule_next_run(current_datetime, 3)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>Python\u7684\u65e5\u671f\u65f6\u95f4\u8ba1\u7b97\u529f\u80fd\u5f3a\u5927\u4e14\u7075\u6d3b\uff0c\u80fd\u591f\u6ee1\u8db3\u4ece\u7b80\u5355\u5230\u590d\u6742\u7684\u5404\u79cd\u9700\u6c42\u3002\u901a\u8fc7<code>datetime<\/code>\u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u548c\u64cd\u4f5c\u65e5\u671f\u65f6\u95f4\uff0c\u800c<code>dateutil<\/code>\u5e93\u5219\u63d0\u4f9b\u4e86\u66f4\u591a\u9ad8\u7ea7\u529f\u80fd\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u4e0d\u89c4\u5219\u5b57\u7b26\u4e32\u548c\u65f6\u533a\u8f6c\u6362\u65f6\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u65e5\u671f\u65f6\u95f4\u52a0\u51cf\uff0c\u8fd8\u662f\u590d\u6742\u7684\u5b9a\u65f6\u4efb\u52a1\u8c03\u5ea6\uff0c\u8fd9\u4e9b\u5de5\u5177\u90fd\u80fd\u5e2e\u52a9\u4f60\u9ad8\u6548\u5730\u5b8c\u6210\u4efb\u52a1\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u719f\u7ec3\u638c\u63e1\u8fd9\u4e9b\u5de5\u5177\u548c\u65b9\u6cd5\uff0c\u5c06\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u5de5\u4f5c\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>datetime<\/code>\u6a21\u5757\u6765\u83b7\u53d6\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4\u3002\u5177\u4f53\u65b9\u6cd5\u662f\u5bfc\u5165<code>datetime<\/code>\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>datetime.now()<\/code>\u51fd\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">from datetime import datetime\n\ncurrent_time = datetime.now()\nprint(&quot;\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4:&quot;, current_time)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u5f02\uff1f<\/strong><br \/>\u8ba1\u7b97\u65e5\u671f\u5dee\u5f02\u53ef\u4ee5\u901a\u8fc7<code>datetime<\/code>\u6a21\u5757\u4e2d\u7684<code>date<\/code>\u6216<code>datetime<\/code>\u7c7b\u5b9e\u73b0\u3002\u53ef\u4ee5\u521b\u5efa\u4e24\u4e2a\u65e5\u671f\u5bf9\u8c61\uff0c\u7136\u540e\u76f8\u51cf\uff0c\u5f97\u5230\u4e00\u4e2a<code>timedelta<\/code>\u5bf9\u8c61\uff0c\u8fdb\u800c\u53ef\u4ee5\u83b7\u53d6\u5929\u6570\u3001\u79d2\u6570\u7b49\u4fe1\u606f\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">from datetime import datetime\n\ndate1 = datetime(2023, 10, 1)\ndate2 = datetime(2023, 10, 15)\n\ndifference = date2 - date1\nprint(&quot;\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u5f02:&quot;, difference.days, &quot;\u5929&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u683c\u5f0f\u5316\u65e5\u671f\u548c\u65f6\u95f4\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>strftime<\/code>\u65b9\u6cd5\u5c06\u65e5\u671f\u548c\u65f6\u95f4\u5bf9\u8c61\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32\u3002\u4f60\u53ef\u4ee5\u6307\u5b9a\u683c\u5f0f\u5316\u7684\u5b57\u7b26\u4e32\u6765\u63a7\u5236\u8f93\u51fa\u7684\u6837\u5f0f\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u5c06\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u683c\u5f0f\u5316\u4e3a\u201c\u5e74-\u6708-\u65e5 \u65f6:\u5206:\u79d2\u201d\uff1a<\/p>\n<pre><code class=\"language-python\">from datetime import datetime\n\nnow = datetime.now()\nformatted_time = now.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)\nprint(&quot;\u683c\u5f0f\u5316\u540e\u7684\u65e5\u671f\u548c\u65f6\u95f4:&quot;, formatted_time)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u7075\u6d3b\u5730\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u7f16\u7a0b\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u8ba1\u7b97\u65e5\u671f\u65f6\u95f4\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528datetime\u6a21\u5757\u8fdb\u884c\u65e5\u671f\u548c\u65f6\u95f4\u7684\u52a0\u51cf\u3001\u4f7f\u7528timedelta\u8fdb\u884c\u65f6 [&hellip;]","protected":false},"author":3,"featured_media":991115,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/991104"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=991104"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/991104\/revisions"}],"predecessor-version":[{"id":991117,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/991104\/revisions\/991117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/991115"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=991104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=991104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=991104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}