{"id":55,"date":"2023-06-24T13:01:24","date_gmt":"2023-06-24T04:01:24","guid":{"rendered":"https:\/\/inforgence.com\/?page_id=55"},"modified":"2023-07-01T23:12:07","modified_gmt":"2023-07-01T14:12:07","slug":"%eb%94%94%eb%8d%b0%ec%9d%b4%ea%b3%84%ec%82%b0%ea%b8%b0","status":"publish","type":"page","link":"https:\/\/inforgence.com\/?page_id=55","title":{"rendered":"\ub514\ub370\uc774(D-day) \uacc4\uc0b0\uae30"},"content":{"rendered":"<br \/>\n<style>\n    body {\n      background-color: green !important;\n      font-family: Arial, sans-serif;\n      text-align: center;\n    }.wrapper {\n      display: inline-block;\n      margin-top: 20px;\n    }h1, p {\n      color: white;\n    }p.description {\n      font-weight: bold;\n    }.today {\n      background-color: yellow;\n      border: 2px solid red;\n      display: inline-block;\n      padding: 5px;\n    }input {\n      margin: 10px;\n      font-size: 18px;\n    }button {\n      margin: 20px;\n    }.result {\n      font-weight: bold;\n      color: yellow;\n    }.ads {\n      background-color: white;\n      border: 1px solid black;\n      padding: 20px;\n      width: 70%;\n      margin: 20px auto;\n    }\n  <\/style>\n<p>  <title>D-Day Calculator<\/title><br \/>\n<\/head><br \/>\n<body><br \/>\n   <!--\ucfe0\ud321.info--><\/p>\n<div class=\"iframes-container\">\n    <iframe loading=\"lazy\" src=\"https:\/\/coupa.ng\/cdPmUE\" width=\"100%\" height=\"75\" frameborder=\"0\" scrolling=\"no\" referrerpolicy=\"unsafe-url\"><\/iframe>\n  <\/div>\n<hr>\n<div class=\"wrapper\">\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_75 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/inforgence.com\/?page_id=55\/#%EB%94%94%EB%8D%B0%EC%9D%B4_%EA%B3%84%EC%82%B0%EA%B8%B0\" >\ub514\ub370\uc774 \uacc4\uc0b0\uae30<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/inforgence.com\/?page_id=55\/#%EA%B8%B0%ED%83%80_%EB%94%94%EB%8D%B0%EC%9D%B4_%EA%B3%84%EC%82%B0\" >\uae30\ud0c0 \ub514\ub370\uc774 \uacc4\uc0b0<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/inforgence.com\/?page_id=55\/#%ED%8F%89%EA%B7%A0_%EC%88%98%EB%AA%85_%EB%8C%80%EB%B9%84_%EB%82%A8%EC%9D%80_%EA%B8%B0%EA%B0%84\" >\ud3c9\uade0 \uc218\uba85 \ub300\ube44 \ub0a8\uc740 \uae30\uac04<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%EB%94%94%EB%8D%B0%EC%9D%B4_%EA%B3%84%EC%82%B0%EA%B8%B0\"><\/span>\ub514\ub370\uc774 \uacc4\uc0b0\uae30<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p class=\"description\">D-Day\ub780 \uc0c1\uae30\ud558\ub294 \ud2b9\ubcc4\ud55c \ub0a0\uc9dc\uc785\ub2c8\ub2e4. \uc774 \uacc4\uc0b0\uae30\ub294 \ub450 \ub0a0\uc9dc \uac04\uc758 \ub0a8\uc740 \uae30\uac04 \ubc0f \uc2dc\uac04\uc744 \uacc4\uc0b0\ud574 \ub4dc\ub9bd\ub2c8\ub2e4.<\/p>\n<p class=\"description\">\uae30\uc900 \ub0a0\uc9dc\uc640 \ub514\ub370\uc774 \ub0a0\uc9dc\ub97c \uc785\ub825\ud55c \ud6c4 &#8220;\uacc4\uc0b0\ud558\uae30&#8221; \ubc84\ud2bc\uc744 \ub20c\ub7ec\ubcf4\uc138\uc694.<\/p>\n<div class=\"today\">\uc624\ub298: <span id=\"today\"><\/span><\/div>\n<p>\n      <!-- \ub514\ub370\uc774 \uacc4\uc0b0\uae30 \ubd80\ubd84 \uc2dc\uc791 --><\/p>\n<div id=\"dDay\">\n    <label for=\"baseDate\">\uae30\uc900 \ub0a0\uc9dc:<\/label><br \/>\n    <input type=\"date\" id=\"baseDate\" value=\"\" onchange=\"calculateDday()\"><br \/>\n    <br \/>\n    <label for=\"dDayDate\">\ub514\ub370\uc774 \ub0a0\uc9dc:<\/label><br \/>\n    <input type=\"date\" id=\"dDayDate\" value=\"\" onchange=\"calculateDday()\"><\/p>\n<p class=\"result\" id=\"dDayResult\">\n<\/p><\/div>\n<p>  <!-- \ub514\ub370\uc774 \uacc4\uc0b0\uae30 \ubd80\ubd84 \ub05d --><br \/>\n    <br \/>\n    <button onclick=\"calculate()\">\uacc4\uc0b0\ud558\uae30<\/button><\/p>\n<p class=\"result\" id=\"result\">\n<hr>\n<h2><span class=\"ez-toc-section\" id=\"%EA%B8%B0%ED%83%80_%EB%94%94%EB%8D%B0%EC%9D%B4_%EA%B3%84%EC%82%B0\"><\/span>\uae30\ud0c0 \ub514\ub370\uc774 \uacc4\uc0b0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div id=\"lovers\">\n      <label for=\"firstDate\"><strong><red>\ub9cc\ub09c \uae30\uac04(\ub0a8\uce5c\/\uc5ec\uce5c\uacfc \ucc98\uc74c \ub9cc\ub09c \ub0a0 \uc785\ub825):<\/red><\/strong><\/label><br \/>\n      <input type=\"date\" id=\"firstDate\" value=\"\" onchange=\"calculateLovers()\"><\/p>\n<p class=\"result\" id=\"loversResult\">\n<\/p><\/div>\n<div id=\"sunung\">\n<p class=\"result\" id=\"sunungResult\">\n<\/p><\/div>\n<div id=\"christmas\">\n<p class=\"result\" id=\"christmasResult\">\n<\/p><\/div>\n<div id=\"remainingYear\">\n<p class=\"result\" id=\"remainingYearResult\">\n<\/p><\/div>\n<p>    <!-- \uc0dd\ub144\uc6d4\uc77c, \uc131\ubcc4 \uc785\ub825 \ubc0f \uacb0\uacfc --><\/p>\n<div id=\"remainingLife\">\n<h3><span class=\"ez-toc-section\" id=\"%ED%8F%89%EA%B7%A0_%EC%88%98%EB%AA%85_%EB%8C%80%EB%B9%84_%EB%82%A8%EC%9D%80_%EA%B8%B0%EA%B0%84\"><\/span>\ud3c9\uade0 \uc218\uba85 \ub300\ube44 \ub0a8\uc740 \uae30\uac04<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>  <label for=\"birthdate\">\uc0dd\ub144\uc6d4\uc77c:<\/label><br \/>\n  <input type=\"date\" id=\"birthdate\" value=\"\" onchange=\"calculateRemainingLife()\"><br \/>\n  <label for=\"gender\">\uc131\ubcc4:<\/label><br \/>\n  <select id=\"gender\" name=\"gender\" onchange=\"calculateRemainingLife()\"><option value=\"M\">\ub0a8\uc131<\/option><option value=\"F\">\uc5ec\uc131<\/option><\/select><\/p>\n<p class=\"result\" id=\"remainingLifeResult\">\n<\/div><\/div>\n<div class=\"ads\">\n<ins class=\"kakao_ad_area\" style=\"display:none;\"\ndata-ad-unit = \"DAN-CKiCJZhEJD16cJ0m\"\ndata-ad-width = \"320\"\ndata-ad-height = \"100\"><\/ins><br \/>\n<script type=\"text\/javascript\" src=\"\/\/t1.daumcdn.net\/kas\/static\/ba.min.js\" async><\/script>\n  <\/div>\n<p><script>\n    function setDate() {\n      const now = new Date();\n      const year = now.getFullYear();\n      const month = now.getMonth() + 1;\n      const day = now.getDate();\n      const hour = now.getHours();\n      const minute = now.getMinutes();\n      const second = now.getSeconds();\n      const dayNames = ['\uc77c', '\uc6d4', '\ud654', '\uc218', '\ubaa9', '\uae08', '\ud1a0'];\n      const dayOfWeek = dayNames[now.getDay()];\n      const formattedDate = `${year}\ub144 ${month}\uc6d4 ${day}\uc77c ${dayOfWeek}\uc694\uc77c ${hour}\uc2dc ${minute}\ubd84 ${second}\ucd08`;\n      document.getElementById(\"today\").innerHTML = formattedDate;\n      setTimeout(setDate, 1000);\n    }setDate();function calculate() {\n      const baseDate = new Date(document.getElementById(\"baseDate\").value);\n      const dDayDate = new Date(document.getElementById(\"dDayDate\").value);\n      const difference = dDayDate.getTime() - baseDate.getTime();\n      const days = Math.floor(difference \/ (1000 * 60 * 60 * 24));\n      const hours = Math.floor(difference \/ (1000 * 60 * 60));\n      document.getElementById(\"result\").innerHTML = `D-Day: ${days}\uc77c (${Math.abs(hours)}\uc2dc\uac04)`;\n    }document.getElementById(\"baseDate\").valueAsDate = new Date(); function calculateLovers() {\n      const firstDate = new Date(document.getElementById(\"firstDate\").value);\n      const now = new Date();\n      const difference = now.getTime() - firstDate.getTime();\n      const days = Math.floor(difference \/ (1000 * 60 * 60 * 24));\n      const hours = Math.floor(difference \/ (1000 * 60 * 60));\n      document.getElementById(\"loversResult\").innerHTML = `\ub0a8\uce5c\/\uc5ec\uce5c\uacfc \ub9cc\ub09c \ucd1d \uae30\uac04: ${days}\uc77c (${hours}\uc2dc\uac04)`;\n    }function calculateRemainingDays(referenceDate, targetDate) {\n      const difference = targetDate.getTime() - referenceDate.getTime();\n      const days = Math.floor(difference \/ (1000 * 60 * 60 * 24));\n      const hours = Math.floor(difference \/ (1000 * 60 * 60));\n      return {days: days, hours: hours};\n    } function updateRemainingDays() {\n      const now = new Date();\n      const year = now.getFullYear();\n      \/\/ \uc218\ub2a5\uc77c\uae4c\uc9c0 \ub0a8\uc740 \ub0a0\uc9dc\n      const sunungDate = new Date(year, 10, 17);\n      const sunungRemaining = calculateRemainingDays(now, sunungDate);\n      document.getElementById(\"sunungResult\").innerHTML = `\uc774\ubc88 \uc5f0\ub3c4 \uc218\ub2a5 \ub0a0\uc9dc\uae4c\uc9c0 \ub0a8\uc740 \uae30\uac04: ${sunungRemaining.days}\uc77c (${sunungRemaining.hours}\uc2dc\uac04)`;\n      \/\/ \ud06c\ub9ac\uc2a4\ub9c8\uc2a4\uae4c\uc9c0 \ub0a8\uc740 \ub0a0\uc9dc\n      const christmasDate = new Date(year, 11, 25);\n      const christmasRemaining = calculateRemainingDays(now, christmasDate);\n      document.getElementById(\"christmasResult\").innerHTML = `\ud06c\ub9ac\uc2a4\ub9c8\uc2a4\uae4c\uc9c0 \ub0a8\uc740 \uae30\uac04: ${christmasRemaining.days}\uc77c (${christmasRemaining.hours}\uc2dc\uac04)`;\n      \/\/ \uc62c\ud574 \ub0a8\uc740 \ub0a0\uc9dc\n      const remainingYearDate = new Date(year + 1, 0, 1);\n      const remainingYear = calculateRemainingDays(now, remainingYearDate);\n      document.getElementById(\"remainingYearResult\").innerHTML = `\uc62c\ud574 \ub0a8\uc740 \uae30\uac04: ${remainingYear.days}\uc77c (${remainingYear.hours}\uc2dc\uac04)`;\n    }\n    updateRemainingDays();\n    setInterval(updateRemainingDays, 1000 * 60 * 60);\nfunction calculateRemainingLife() {const birthdate = new Date(document.getElementById(\"birthdate\").value);const gender = document.getElementById(\"gender\").value;const currentLifeExpectancy = gender === \"M\" ? 81 : 87;const currentDate = new Date();const currentYear = currentDate.getFullYear();const currentMonth = currentDate.getMonth();const currentDay = currentDate.getDate();const currentHour = currentDate.getHours();const currentMinute = currentDate.getMinutes();const currentSecond = currentDate.getSeconds();const elapsedLifeInYears = (currentDate.getTime() - birthdate.getTime()) \/ (1000 * 60 * 60 * 24 * 365.25);const remainingLifeInYears = currentLifeExpectancy - elapsedLifeInYears;const remainingYears = Math.floor(remainingLifeInYears);const remainingMonths = Math.floor((remainingLifeInYears - remainingYears) * 12);const remainingDays = Math.floor(((remainingLifeInYears - remainingYears) * 365.25) % 30);const remainingHours = Math.floor(((remainingLifeInYears * 365.25 * 24) % 24));const remainingMinutes = Math.floor(((remainingLifeInYears * 365.25 * 24 * 60) % 60));const remainingSeconds = Math.floor(((remainingLifeInYears * 365.25 * 24 * 60 * 60) % 60));document.getElementById(\"remainingLifeResult\").innerHTML =\n    \"\ub0a8\uc740 \uae30\uac04: \" + remainingYears + \"\ub144 \" + remainingMonths + \"\uac1c\uc6d4 \" + remainingDays + \"\uc77c \" + remainingHours + \"\uc2dc \" + remainingMinutes + \"\ubd84 \" + remainingSeconds + \"\ucd08\";\n}\n  <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>D-Day Calculator \ub514\ub370\uc774 \uacc4\uc0b0\uae30 D-Day\ub780 \uc0c1\uae30\ud558\ub294 \ud2b9\ubcc4\ud55c \ub0a0\uc9dc\uc785\ub2c8\ub2e4. \uc774 \uacc4\uc0b0\uae30\ub294 \ub450 \ub0a0\uc9dc \uac04\uc758 \ub0a8\uc740 \uae30\uac04 \ubc0f \uc2dc\uac04\uc744 \uacc4\uc0b0\ud574 \ub4dc\ub9bd\ub2c8\ub2e4. \uae30\uc900 \ub0a0\uc9dc\uc640 \ub514\ub370\uc774 \ub0a0\uc9dc\ub97c \uc785\ub825\ud55c \ud6c4 &#8220;\uacc4\uc0b0\ud558\uae30&#8221; \ubc84\ud2bc\uc744 \ub20c\ub7ec\ubcf4\uc138\uc694. \uc624\ub298: \uae30\uc900 \ub0a0\uc9dc: \ub514\ub370\uc774 \ub0a0\uc9dc: \uacc4\uc0b0\ud558\uae30 \uae30\ud0c0 \ub514\ub370\uc774 \uacc4\uc0b0 \ub9cc\ub09c \uae30\uac04(\ub0a8\uce5c\/\uc5ec\uce5c\uacfc \ucc98\uc74c \ub9cc\ub09c \ub0a0 \uc785\ub825): \ud3c9\uade0 \uc218\uba85 \ub300\ube44 \ub0a8\uc740 \uae30\uac04 \uc0dd\ub144\uc6d4\uc77c: \uc131\ubcc4: \ub0a8\uc131\uc5ec\uc131<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-55","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/inforgence.com\/index.php?rest_route=\/wp\/v2\/pages\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inforgence.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/inforgence.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/inforgence.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inforgence.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=55"}],"version-history":[{"count":2,"href":"https:\/\/inforgence.com\/index.php?rest_route=\/wp\/v2\/pages\/55\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/inforgence.com\/index.php?rest_route=\/wp\/v2\/pages\/55\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/inforgence.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}