{"id":931434,"date":"2024-12-26T17:36:18","date_gmt":"2024-12-26T09:36:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/931434.html"},"modified":"2024-12-26T17:36:20","modified_gmt":"2024-12-26T09:36:20","slug":"python%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85datetime","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/931434.html","title":{"rendered":"python\u5982\u4f55\u5b89\u88c5datetime"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25065727\/ff26efa0-49fe-4748-88f8-b74c4ec084a5.webp\" alt=\"python\u5982\u4f55\u5b89\u88c5datetime\" \/><\/p>\n<p><p> <strong>Python\u5b89\u88c5datetime\u6a21\u5757\u65e0\u9700\u989d\u5916\u64cd\u4f5c\u3001\u56e0\u4e3adatetime\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\u3001\u53ea\u9700\u8981\u5bfc\u5165\u8be5\u6a21\u5757\u5373\u53ef\u76f4\u63a5\u4f7f\u7528\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c<code>datetime<\/code>\u6a21\u5757\u662f\u4e00\u4e2a\u7528\u4e8e\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684\u6807\u51c6\u5e93\u6a21\u5757\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u901a\u8fc7<code>pip<\/code>\u5b89\u88c5\u3002\u53ea\u9700\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528<code>import datetime<\/code>\u6765\u5bfc\u5165\u6a21\u5757\u5373\u53ef\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528<code>datetime<\/code>\u6a21\u5757\uff0c\u4ee5\u53ca\u4e00\u4e9b\u5e38\u89c1\u7684\u7528\u6cd5\u548c\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001DATETIME\u6a21\u5757\u4ecb\u7ecd<\/p>\n<\/p>\n<p><p><code>datetime<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u7528\u4e8e\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684\u7c7b\u548c\u65b9\u6cd5\u3002\u5b83\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u5173\u952e\u7c7b\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>datetime.date<\/strong>\uff1a\u7528\u4e8e\u8868\u793a\u65e5\u671f\uff08\u5e74\u3001\u6708\u3001\u65e5\uff09\u3002<\/li>\n<li><strong>datetime.time<\/strong>\uff1a\u7528\u4e8e\u8868\u793a\u65f6\u95f4\uff08\u65f6\u3001\u5206\u3001\u79d2\u3001\u5fae\u79d2\uff09\u3002<\/li>\n<li><strong>datetime.datetime<\/strong>\uff1a\u7528\u4e8e\u8868\u793a\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/li>\n<li><strong>datetime.timedelta<\/strong>\uff1a\u7528\u4e8e\u8868\u793a\u4e24\u4e2a\u65e5\u671f\u6216\u65f6\u95f4\u4e4b\u95f4\u7684\u5dee\u5f02\u3002<\/li>\n<li><strong>datetime.tzinfo<\/strong>\uff1a\u7528\u4e8e\u5904\u7406\u65f6\u533a\u4fe1\u606f\u3002<\/li>\n<\/ol>\n<p><p>\u8fd9\u4e9b\u7c7b\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u65b9\u6cd5\u548c\u5c5e\u6027\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u65b9\u4fbf\u5730\u8fdb\u884c\u65e5\u671f\u548c\u65f6\u95f4\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001DATETIME\u6a21\u5757\u7684\u57fa\u672c\u7528\u6cd5<\/p>\n<\/p>\n<ol>\n<li><strong>\u83b7\u53d6\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u83b7\u53d6\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u53ef\u4ee5\u4f7f\u7528<code>datetime.datetime.now()<\/code>\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>current_datetime = datetime.datetime.now()<\/p>\n<p>print(f&quot;Current date and time: {current_datetime}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u5c06\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u7684<code>datetime<\/code>\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u521b\u5efa\u7279\u5b9a\u7684\u65e5\u671f\u548c\u65f6\u95f4<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u901a\u8fc7<code>datetime.datetime<\/code>\u7c7b\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u7279\u5b9a\u65e5\u671f\u548c\u65f6\u95f4\u7684\u5bf9\u8c61\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>specific_datetime = datetime.datetime(2023, 10, 15, 12, 30, 45)<\/p>\n<p>print(f&quot;Specific date and time: {specific_datetime}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b2023\u5e7410\u670815\u65e512\u65f630\u520645\u79d2\u7684<code>datetime<\/code>\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u65e5\u671f\u548c\u65f6\u95f4\u7684\u683c\u5f0f\u5316<\/strong><\/li>\n<\/ol>\n<p><p><code>datetime<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86<code>strftime<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u65e5\u671f\u548c\u65f6\u95f4\u5bf9\u8c61\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>now = datetime.datetime.now()<\/p>\n<p>formatted_date = now.strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)<\/p>\n<p>print(f&quot;Formatted date and time: {formatted_date}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>%Y-%m-%d %H:%M:%S<\/code>\u662f\u683c\u5f0f\u5b57\u7b26\u4e32\uff0c\u8868\u793a\u5e74-\u6708-\u65e5 \u65f6:\u5206:\u79d2\u3002<\/p>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u89e3\u6790\u5b57\u7b26\u4e32\u4e3a\u65e5\u671f\u548c\u65f6\u95f4<\/strong><\/li>\n<\/ol>\n<p><p>\u76f8\u53cd\u5730\uff0c<code>strptime<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5c06\u683c\u5f0f\u5316\u7684\u5b57\u7b26\u4e32\u89e3\u6790\u4e3a<code>datetime<\/code>\u5bf9\u8c61\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>date_string = &quot;2023-10-15 12:30:45&quot;<\/p>\n<p>parsed_date = datetime.datetime.strptime(date_string, &quot;%Y-%m-%d %H:%M:%S&quot;)<\/p>\n<p>print(f&quot;Parsed date and time: {parsed_date}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5bf9\u4e8e\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u65e5\u671f\u548c\u65f6\u95f4\u4fe1\u606f\u7279\u522b\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001DATETIME\u6a21\u5757\u7684\u9ad8\u7ea7\u7528\u6cd5<\/p>\n<\/p>\n<ol>\n<li><strong>\u65e5\u671f\u548c\u65f6\u95f4\u7684\u8ba1\u7b97<\/strong><\/li>\n<\/ol>\n<p><p><code>timedelta<\/code>\u7c7b\u53ef\u4ee5\u7528\u4e8e\u5bf9\u65e5\u671f\u548c\u65f6\u95f4\u8fdb\u884c\u7b97\u672f\u8fd0\u7b97\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u5f02\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>date1 = datetime.datetime(2023, 10, 15)<\/p>\n<p>date2 = datetime.datetime(2023, 11, 15)<\/p>\n<p>difference = date2 - date1<\/p>\n<p>print(f&quot;Difference between dates: {difference.days} days&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5904\u7406\u65f6\u533a<\/strong><\/li>\n<\/ol>\n<p><p><code>datetime<\/code>\u6a21\u5757\u652f\u6301\u65f6\u533a\uff0c\u901a\u8fc7<code>pytz<\/code>\u5e93\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u5904\u7406\u65f6\u533a\u8f6c\u6362\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>import pytz<\/p>\n<p>utc = pytz.utc<\/p>\n<p>now = datetime.datetime.now(utc)<\/p>\n<p>print(f&quot;Current UTC time: {now}&quot;)<\/p>\n<h2><strong>\u8f6c\u6362\u4e3a\u5176\u4ed6\u65f6\u533a<\/strong><\/h2>\n<p>eastern = pytz.timezone(&#39;US\/Eastern&#39;)<\/p>\n<p>eastern_time = now.astimezone(eastern)<\/p>\n<p>print(f&quot;Current Eastern time: {eastern_time}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u8ba1\u7b97\u672a\u6765\u6216\u8fc7\u53bb\u7684\u65e5\u671f<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>timedelta<\/code>\u7c7b\u8f7b\u677e\u8ba1\u7b97\u672a\u6765\u6216\u8fc7\u53bb\u7684\u65e5\u671f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>now = datetime.datetime.now()<\/p>\n<p>future_date = now + datetime.timedelta(days=10)<\/p>\n<p>past_date = now - datetime.timedelta(days=10)<\/p>\n<p>print(f&quot;Future date: {future_date}&quot;)<\/p>\n<p>print(f&quot;Past date: {past_date}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001DATETIME\u6a21\u5757\u7684\u5e38\u89c1\u5e94\u7528<\/p>\n<\/p>\n<ol>\n<li><strong>\u65e5\u671f\u548c\u65f6\u95f4\u6233\u7684\u8f6c\u6362<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5904\u7406\u6570\u636e\u65f6\uff0c\u5e38\u5e38\u9700\u8981\u5728\u65e5\u671f\u548c\u65f6\u95f4\u6233\u4e4b\u95f4\u8fdb\u884c\u8f6c\u6362\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>timestamp = 1609459200  # Unix\u65f6\u95f4\u6233<\/p>\n<p>date_from_timestamp = datetime.datetime.fromtimestamp(timestamp)<\/p>\n<p>print(f&quot;Date from timestamp: {date_from_timestamp}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8ba1\u7b97\u65e5\u671f\u8303\u56f4<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u751f\u6210\u4e00\u7cfb\u5217\u65e5\u671f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>start_date = datetime.date(2023, 10, 1)<\/p>\n<p>end_date = datetime.date(2023, 10, 10)<\/p>\n<p>date_range = [start_date + datetime.timedelta(days=x) for x in range((end_date - start_date).days + 1)]<\/p>\n<p>print(&quot;Date range:&quot;)<\/p>\n<p>for date in date_range:<\/p>\n<p>    print(date)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5b9a\u671f\u4efb\u52a1\u7684\u65f6\u95f4\u8ba1\u7b97<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5b9a\u671f\u4efb\u52a1\u8c03\u5ea6\u4e2d\uff0c\u5e38\u5e38\u9700\u8981\u8ba1\u7b97\u4e0b\u4e00\u4e2a\u6267\u884c\u65f6\u95f4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<p>def next_weekday(d, weekday):<\/p>\n<p>    days_ahead = weekday - d.weekday()<\/p>\n<p>    if days_ahead &lt;= 0:<\/p>\n<p>        days_ahead += 7<\/p>\n<p>    return d + datetime.timedelta(days_ahead)<\/p>\n<p>today = datetime.date.today()<\/p>\n<p>next_monday = next_weekday(today, 0)<\/p>\n<p>print(f&quot;Next Monday is on: {next_monday}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528\u6807\u51c6\u5e93<\/strong>\uff1a<code>datetime<\/code>\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u901a\u5e38\u63a8\u8350\u4f18\u5148\u4f7f\u7528\u6807\u51c6\u5e93\u4e2d\u7684\u529f\u80fd\uff0c\u56e0\u4e3a\u5b83\u4eec\u7ecf\u8fc7\u4e86\u5e7f\u6cdb\u7684\u6d4b\u8bd5\u548c\u4f18\u5316\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u65f6\u533a\u5904\u7406<\/strong>\uff1a\u5728\u5168\u7403\u5316\u5e94\u7528\u4e2d\uff0c\u65f6\u533a\u662f\u4e00\u4e2a\u590d\u6742\u4e14\u5e38\u88ab\u5ffd\u89c6\u7684\u95ee\u9898\u3002\u4f7f\u7528<code>pytz<\/code>\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6b63\u786e\u5904\u7406\u65f6\u533a\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u683c\u5f0f\u5316\u4e0e\u89e3\u6790<\/strong>\uff1a\u719f\u6089<code>strftime<\/code>\u548c<code>strptime<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5728\u4e0d\u540c\u683c\u5f0f\u4e4b\u95f4\u8f6c\u6362\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u65e5\u671f\u7b97\u672f<\/strong>\uff1a<code>timedelta<\/code>\u7c7b\u662f\u8fdb\u884c\u65e5\u671f\u7b97\u672f\u7684\u5173\u952e\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u8f7b\u677e\u8ba1\u7b97\u65e5\u671f\u5dee\u5f02\u6216\u8ba1\u7b97\u672a\u6765\u7684\u65e5\u671f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u5408\u7406\u4f7f\u7528<code>datetime<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406\u5404\u79cd\u65e5\u671f\u548c\u65f6\u95f4\u76f8\u5173\u7684\u4efb\u52a1\u3002\u4e86\u89e3\u5176\u57fa\u672c\u548c\u9ad8\u7ea7\u7528\u6cd5\uff0c\u4ee5\u53ca\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\uff0c\u5c06\u6709\u52a9\u4e8e\u5728\u9879\u76ee\u4e2d\u66f4\u597d\u5730\u7ba1\u7406\u65f6\u95f4\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528datetime\u6a21\u5757\uff1f<\/strong><br \/>datetime\u6a21\u5757\u662fPython\u7684\u6807\u51c6\u5e93\u4e4b\u4e00\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\u4e0d\u9700\u8981\u5355\u72ec\u5b89\u88c5\u3002\u53ea\u9700\u5728\u4f60\u7684Python\u4ee3\u7801\u4e2d\u5bfc\u5165\u8be5\u6a21\u5757\u5373\u53ef\u4f7f\u7528\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u5bfc\u5165\uff1a  <\/p>\n<pre><code class=\"language-python\">import datetime\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u4f7f\u4f60\u80fd\u591f\u8bbf\u95eedatetime\u6a21\u5757\u4e2d\u7684\u6240\u6709\u529f\u80fd\uff0c\u5305\u62ec\u65e5\u671f\u548c\u65f6\u95f4\u7684\u8ba1\u7b97\u3001\u683c\u5f0f\u5316\u7b49\u3002<\/p>\n<p><strong>datetime\u6a21\u5757\u7684\u4e3b\u8981\u529f\u80fd\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>datetime\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u529f\u80fd\uff0c\u5305\u62ec\u521b\u5efa\u65e5\u671f\u548c\u65f6\u95f4\u5bf9\u8c61\u3001\u8ba1\u7b97\u65f6\u95f4\u5dee\u3001\u683c\u5f0f\u5316\u65e5\u671f\u548c\u65f6\u95f4\u3001\u4ee5\u53ca\u5904\u7406\u65f6\u533a\u7b49\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u8f7b\u677e\u5904\u7406\u4e0e\u65f6\u95f4\u76f8\u5173\u7684\u5404\u79cd\u4efb\u52a1\uff0c\u4f8b\u5982\uff0c\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u3001\u8ba1\u7b97\u4e24\u4e2a\u65e5\u671f\u4e4b\u95f4\u7684\u5dee\u5f02\u7b49\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u5728\u4f7f\u7528datetime\u65f6\u9047\u5230\u95ee\u9898\uff0c\u5e94\u8be5\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><br \/>\u9047\u5230\u95ee\u9898\u65f6\uff0c\u53ef\u4ee5\u9996\u5148\u68c0\u67e5Python\u7684\u7248\u672c\uff0c\u786e\u4fdd\u4f7f\u7528\u7684\u662f\u652f\u6301datetime\u6a21\u5757\u7684\u7248\u672c\u3002\u5176\u6b21\uff0c\u67e5\u770b\u5b98\u65b9\u6587\u6863\u548c\u793e\u533a\u8bba\u575b\uff0c\u5bfb\u627e\u7c7b\u4f3c\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5e38\u89c1\u95ee\u9898\u5305\u62ec\u6a21\u5757\u5bfc\u5165\u9519\u8bef\u3001\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e\u7b49\uff0c\u8fd9\u4e9b\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u4ed4\u7ec6\u68c0\u67e5\u4ee3\u7801\u548c\u53c2\u8003\u6587\u6863\u6765\u89e3\u51b3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5b89\u88c5datetime\u6a21\u5757\u65e0\u9700\u989d\u5916\u64cd\u4f5c\u3001\u56e0\u4e3adatetime\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\u3001\u53ea\u9700\u8981\u5bfc\u5165 [&hellip;]","protected":false},"author":3,"featured_media":931438,"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\/931434"}],"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=931434"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931434\/revisions"}],"predecessor-version":[{"id":931439,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931434\/revisions\/931439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/931438"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=931434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=931434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=931434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}