{"id":96,"date":"2010-01-07T16:17:00","date_gmt":"2010-01-07T07:17:00","guid":{"rendered":"http:\/\/www.worldagency.jp\/wordpress\/?p=96"},"modified":"2010-01-07T20:26:24","modified_gmt":"2010-01-07T11:26:24","slug":"cakephp-%e6%8c%87%e5%ae%9a%e6%97%a5%e3%81%8b%e3%82%89%e3%81%ae%e6%97%a5%e4%bb%98%e3%81%ae%e8%a8%88%e7%ae%97","status":"publish","type":"post","link":"https:\/\/www.worldagency.jp\/wordpress\/?p=96","title":{"rendered":"cakePHP ; \u6307\u5b9a\u65e5\u304b\u3089\u306e\u65e5\u4ed8\u306e\u8a08\u7b97"},"content":{"rendered":"<p>\u2605PHP\uff08cakePHP\uff09\u3067\u6307\u5b9a\u65e5\u304b\u3089\u306e\u65e5\u4ed8\u306e\u8a08\u7b97\u3092\u3057\u307e\u3059<\/p>\n<p>strtotime \u95a2\u6570\u3092\u4f7f\u3063\u3066 date \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u3082\u3057\u6570\u5b57\u306e\u6587\u5b57\u5217\u304c\u6e21\u3055\u308c\u305f\u3089\u3001\u307e\u305a\u6574\u6570\u578b\u306b\u5909\u63db\u3057\u3001 Unix \u30a8\u30dd\u30c3\u30af(GMT \u306e1970\u5e741\u67081\u65e50\u66420\u52060\u79d2)\u304b\u3089\u306e\u7d4c\u904e\u79d2\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002\u300c20081231\u300d\u3068\u3044\u3046\u5024\u3092\u6e21\u3057\u305f\u5834\u5408\u3001 Unix \u30a8\u30dd\u30c3\u30af\u304b\u3089\u306e\u7d4c\u904e\u75c5\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u305f\u3081\u3001\u300cFri, Aug 21st 1970, 06:07\u300d\u3068\u3044\u3046\u3088\u3046\u306a\u671b\u307e\u3057\u304f\u306a\u3044\u7d50\u679c\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\uff08CakePHP\u30de\u30cb\u30e5\u30a2\u30eb\u3088\u308a\uff09<\/p>\n<p>\u3010\u30b3\u30fc\u30c9\u4f8b\u3011<\/p>\n<div class=\"codesample\">\n\t$date_a = $user[&#8216;User&#8217;][&#8216;birthday&#8217;];<br \/>\n\t$date_b = strtotime($date_a) + (86400*7);<br \/>\n\t$date_c = date(&#8216;Y-m-d&#8217;,$date_b);<br \/>\n\techo $date_c;<br \/>\n\techo date(&#8216;Y&#8217;,$date_b).&#8217;\u5e74&#8217;.date(&#8216;m&#8217;,$date_b).&#8217;\u6708&#8217;.date(&#8216;d&#8217;,$date_b).&#8217;\u65e5&#8217;;<\/p>\n<p>\u30fb2\u9031\u9593\u5f8c\u30921\u884c\u3067\u66f8\u304f\u3068<br \/>\n\t$date_2w = date(&#8216;Y\u5e74m\u6708d\u65e5&#8217;,strtotime($user[&#8216;User&#8217;][&#8216;birthday&#8217;]) + (86400*7*2));\n<\/div>\n<p>\u30b3\u30fc\u30c9\u4f8b\u3067\u306f\u3001DB\u306eusers\u30c6\u30fc\u30d6\u30eb\u30fbbirthday\u8981\u7d20\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u8a95\u751f\u65e5\uff08\u6307\u5b9a\u65e5\uff09\u306e7\u65e5\u5f8c\u3092\u8a08\u7b97\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306a\u65e5\u4ed8\u8a08\u7b97\u306f\u7c21\u5358\u3059\u304e\u308b\u70ba\u304b\u60c5\u5831\u304c\u5c11\u306a\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2605PHP\uff08cakePHP\uff09\u3067\u6307\u5b9a\u65e5\u304b\u3089\u306e\u65e5\u4ed8\u306e\u8a08\u7b97\u3092\u3057\u307e\u3059 strtotime \u95a2\u6570\u3092\u4f7f\u3063\u3066 date \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u3082\u3057\u6570\u5b57\u306e\u6587\u5b57\u5217\u304c\u6e21\u3055\u308c\u305f\u3089\u3001\u307e\u305a\u6574\u6570\u578b\u306b\u5909\u63db\u3057\u3001 Unix \u30a8\u30dd\u30c3\u30af(GMT \u306e1970 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.worldagency.jp\/wordpress\/?p=96\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;cakePHP ; \u6307\u5b9a\u65e5\u304b\u3089\u306e\u65e5\u4ed8\u306e\u8a08\u7b97&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":0,"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.worldagency.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}