{"id":21572,"date":"2024-11-01T11:58:26","date_gmt":"2024-11-01T02:58:26","guid":{"rendered":"https:\/\/chidori.kimonomichi.com\/?p=21572"},"modified":"2024-11-01T14:21:53","modified_gmt":"2024-11-01T05:21:53","slug":"%e3%81%bb%e3%82%93%e3%81%a8%e3%81%86%e3%81%ae%e4%b8%8a%e6%98%a0%e9%96%8b%e5%a7%8b%e6%99%82%e9%96%93%e3%82%92%e8%aa%bf%e3%81%b9%e3%82%8b","status":"publish","type":"post","link":"https:\/\/chidori.kimonomichi.com\/?p=21572","title":{"rendered":"\u307b\u3093\u3068\u3046\u306e\u4e0a\u6620\u958b\u59cb\u6642\u9593\u3092\u8abf\u3079\u308b"},"content":{"rendered":"<p>\u5287\u5834\u306e\u5ea7\u5e2d\u306b\u5ea7\u3063\u305f\u306f\u3044\u3044\u3082\u306e\u306e\u3001\u4e88\u544a\u7de8\u304c\u9577\u304f\u3066\u56f0\u3063\u3061\u3083\u3046\u3088\u306d\u3068\u3044\u3046\u3068\u304d\u306b\u304a\u4f7f\u3044\u4e0b\u3055\u3044\u3002<br \/>\n<label for=\"endTime\">\u7d42\u6f14\u6642\u9593 (\u4f8b: 1455): <\/label><br \/>\n<input type=\"number\" id=\"endTime\" min=\"0\" max=\"2359\"><\/p>\n<p><label for=\"duration\">\u4f5c\u54c1\u306e\u9577\u3055 (\u5206\u3000\u4f8b\uff1a109): <\/label><br \/>\n<input type=\"number\" id=\"duration\" min=\"1\"><\/p>\n<p><button onclick=\"calculateStartTime()\">\u4e0a\u6620\u958b\u59cb\u6642\u9593\u3092\u8a08\u7b97<\/button><\/p>\n<p id=\"result\">\n<p>    <script>\n        function calculateStartTime() {\n            const endTimeInput = document.getElementById('endTime').value;\n            const durationInput = parseInt(document.getElementById('duration').value);\n            const endHour = Math.floor(endTimeInput \/ 100);\n            const endMinute = endTimeInput % 100;\n            const endDate = new Date();\n            endDate.setHours(endHour, endMinute, 0);\n            const durationMs = durationInput * 60 * 1000;\n            const startDate = new Date(endDate - durationMs);\n            const startHour = startDate.getHours().toString().padStart(2, '0');\n            const startMinute = startDate.getMinutes().toString().padStart(2, '0');\n            document.getElementById('result').textContent = `\u4e0a\u6620\u958b\u59cb\u6642\u9593: ${startHour}:${startMinute}`;\n        }\n    <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5287\u5834\u306e\u5ea7\u5e2d\u306b\u5ea7\u3063\u305f\u306f\u3044\u3044\u3082\u306e\u306e\u3001\u4e88\u544a\u7de8\u304c\u9577\u304f\u3066\u56f0\u3063\u3061\u3083\u3046\u3088\u306d\u3068\u3044\u3046\u3068\u304d\u306b\u304a\u4f7f\u3044\u4e0b\u3055\u3044\u3002 \u7d42\u6f14\u6642\u9593 (\u4f8b: 1455): \u4f5c\u54c1\u306e\u9577\u3055 (\u5206\u3000\u4f8b\uff1a109): \u4e0a\u6620\u958b\u59cb\u6642\u9593\u3092\u8a08\u7b97<\/p>\n","protected":false},"author":1,"featured_media":20504,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":{"0":"post-21572","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-3"},"_links":{"self":[{"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=\/wp\/v2\/posts\/21572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21572"}],"version-history":[{"count":7,"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=\/wp\/v2\/posts\/21572\/revisions"}],"predecessor-version":[{"id":21579,"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=\/wp\/v2\/posts\/21572\/revisions\/21579"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=\/wp\/v2\/media\/20504"}],"wp:attachment":[{"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chidori.kimonomichi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}