{"image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/m/mocomei/20140113/20140113222100.png","height":"190","version":"1.0","width":"100%","provider_url":"https://hatena.blog","url":"https://mocomei.hatenablog.com/entry/2014/01/13/222150","author_url":"https://blog.hatena.ne.jp/mocomei/","published":"2014-01-13 22:21:50","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmocomei.hatenablog.com%2Fentry%2F2014%2F01%2F13%2F222150\" title=\"20140113\u3010JS\u3011\u65e5\u4ed8\u306e\u5dee\u3092\u8a08\u7b97\u3059\u308b - 365\u65e5\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"provider_name":"Hatena Blog","blog_url":"https://mocomei.hatenablog.com/","type":"rich","title":"20140113\u3010JS\u3011\u65e5\u4ed8\u306e\u5dee\u3092\u8a08\u7b97\u3059\u308b","author_name":"mocomei","description":"\u304a\u984c \u65e5\u4ed8\u306e\u5dee\u3092\u8a08\u7b97\u3059\u308b \u30d7\u30ed\u30b0\u30e9\u30e0\u6982\u8981 20080101\u304b\u3089\u73fe\u5728\u306e\u65e5\u4ed8\u306e\u5dee\u3092\u8868\u793a\u3059\u308b \u30bd\u30fc\u30b9 var now = new Date(); // \u73fe\u5728\u65e5\u6642\u3067Date\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210 var millis = now.getTime() - Date.parse('2008/01/01'); // 1/1\u304b\u3089\u306e\u7d4c\u904e\u30df\u30ea\u79d2 var dates = millis / 1000 / 60 / 60 / 24; // \u30df\u30ea\u79d2\u3092\u65e5\u306b\u5909\u63db alert(Math.floor(dates) + '\u65e5'); \u5b9f\u884c\u7d50\u679c","blog_title":"365\u65e5\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30d6\u30ed\u30b0"}