{"id":704,"date":"2017-04-27T18:47:23","date_gmt":"2017-04-27T09:47:23","guid":{"rendered":"https:\/\/clouds.tokyo\/blog\/?p=704"},"modified":"2017-04-28T20:24:50","modified_gmt":"2017-04-28T11:24:50","slug":"php_date","status":"publish","type":"post","link":"https:\/\/clouds.tokyo\/blog\/php_date\/","title":{"rendered":"\u3010PHP\u3011\u5e74\u9593\u4f1a\u54e1\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u59cb\u65e5\u3068\u7d42\u4e86\u65e5\u3092\u6c42\u3081\u308b"},"content":{"rendered":"<p>\u5e74\u9593\u4f1a\u54e1\u306e\u4ed5\u7d44\u307f\u3092\u4f5c\u3063\u3066\u3044\u3066<br \/>\n\u4f1a\u54e1\u306e\u6709\u52b9\u671f\u9593\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u3059\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u767b\u9332\u5f8c\u306b\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u306b\u3082\u6709\u52b9\u671f\u9593\u3092\u8a18\u8f09\u3059\u308b\u305f\u3081\u3001<br \/>\nSQL\u3067\u306f\u306a\u304fPHP\u3067\u958b\u59cb\u65e5\u3068\u7d42\u4e86\u65e5\u3092\u6c42\u3081\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>PHP\u306e\u65e5\u4ed8\u95a2\u6570\u3067\u5e74\u9593\u4f1a\u54e1\u306e\u958b\u59cb\u65e5\u3068\u7d42\u4e86\u65e5\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n<p>\u958b\u59cb\u65e5\u306f\u5f53\u65e5\u3067\u306f\u306a\u304f\u3001\u5f53\u6708\u306e1\u65e5\u3068\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n<pre>\r\ndate('Y-m-01');\r\n<\/pre>\n<p>\u7d42\u4e86\u65e5\u306f1\u5e74\u5f8c\u306e\u524d\u6708\u306e\u6700\u7d42\u65e5\u3001\u305f\u3068\u3048\u30702017\u5e744\u670815\u65e5\u306b\u5165\u4f1a\u3057\u305f\u5834\u5408\u306e\u7d42\u4e86\u65e5\u306f<br \/>\n2018\u5e743\u670831\u65e5<br \/>\n\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3068\u304d\u3001\u5358\u7d14\u306b\u4eca\u65e5\u306e\u65e5\u4ed8\u3092\u3082\u3068\u306b\u8a08\u7b97\u3057\u3066\u3057\u307e\u3046\u3068\u3001<br \/>\n\u6708\u672b\u306e31\u65e5\u306a\u3069\u306b\u5165\u4f1a\u3057\u305f\u969b\u306b\u524d\u5f8c\u306e\u6708\u304c30\u65e5\u307e\u3067\u3057\u304b\u306a\u3044\u3053\u3068\u306b\u3088\u308a\u3001\u7d50\u679c\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3059\u306e\u3067\u3001\u5fc5\u305a\u300c1\u65e5\u300d\u3092\u57fa\u6e96\u306b\u8a08\u7b97\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\ndate('Y-m-d', strtotime(date('Y-m-01', strtotime(date('Y-m-01') . '+1 year')) . '-1 day'));\r\n<\/pre>\n<p>\u9577\u3044\u3067\u3059\u306d\u3002\u7121\u99c4\u304c\u3042\u308a\u305d\u3046\u306a\u6c17\u304c\u3057\u306a\u3044\u3067\u3082\u306a\u3044\u3067\u3059\u304c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e74\u9593\u4f1a\u54e1\u306e\u4ed5\u7d44\u307f\u3092\u4f5c\u3063\u3066\u3044\u3066 \u4f1a\u54e1\u306e\u6709\u52b9\u671f\u9593\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u3059\u308b\u3068\u3057\u307e\u3059\u3002 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u767b\u9332\u5f8c\u306b\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u306b\u3082\u6709\u52b9\u671f\u9593\u3092\u8a18\u8f09\u3059\u308b\u305f\u3081\u3001 SQL\u3067\u306f\u306a\u304fPHP\u3067\u958b\u59cb\u65e5\u3068\u7d42\u4e86\u65e5\u3092\u6c42\u3081\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002 PHP\u306e\u65e5\u4ed8 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/clouds.tokyo\/blog\/php_date\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010PHP\u3011\u5e74\u9593\u4f1a\u54e1\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u59cb\u65e5\u3068\u7d42\u4e86\u65e5\u3092\u6c42\u3081\u308b&#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":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":""},"categories":[2],"tags":[81,96,290,291],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/sezW3u-php_date","jetpack-related-posts":[{"id":732,"url":"https:\/\/clouds.tokyo\/blog\/date_format\/","url_meta":{"origin":704,"position":0},"title":"\u3010PHP\u3011\u3010MySQL\u3011\u65e5\u4ed8\u306e\u66f8\u5f0f\u306e\u9055\u3044","author":"yamamoto","date":"2017\u5e745\u670825\u65e5","format":false,"excerpt":"PHP\u3068MySQL\u3067\u65e5\u4ed8\u306e\u66f8\u5f0f\u304c\u82e5\u5e72\u9055\u3063\u3066\u3044\u307e\u3059\u3002 \u3069\u3061\u3089\u304b\u3057\u304b\u4f7f\u308f\u306a\u3044\u3068\u6c7a\u3081\u3066\u3044\u308b\u306a\u3089\u3044\u3044\u306e\u3067\u3059\u304c\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":770,"url":"https:\/\/clouds.tokyo\/blog\/linux_date_format\/","url_meta":{"origin":704,"position":1},"title":"\u3010Linux\u3011\u30b7\u30a7\u30eb\u3067\u306e\u65e5\u4ed8\u306e\u66f8\u5f0f","author":"yamamoto","date":"2017\u5e747\u67084\u65e5","format":false,"excerpt":"PHP\u3068MySQL\u3067\u306f\u65e5\u4ed8\u306e\u66f8\u5f0f\u306f\u304b\u306a\u308a\u4f3c\u3066\u3044\u307e\u3059\u3002 PHP\u3068MySQL\u306e\u65e5\u4ed8\u306e\u66f8\u5f0f\u306e\u9055\u3044 Linu\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":792,"url":"https:\/\/clouds.tokyo\/blog\/php_timezone\/","url_meta":{"origin":704,"position":2},"title":"\u3010PHP\u3011\u53d6\u5f97\u3057\u305f\u73fe\u5728\u65e5\u6642\u304c9\u6642\u9593\u305a\u308c\u3066\u3044\u308b\u3068\u304d\u306f","author":"yamamoto","date":"2017\u5e748\u670825\u65e5","format":false,"excerpt":"PHP\u3067date\u3084strtotime\u3067\u53d6\u5f97\u3057\u305f\u73fe\u5728\u65e5\u6642\u304c9\u6642\u9593\u305a\u308c\u3066\u3044\u308b\u3068\u304d\u306f\u3001 \u65e5\u672c\u3067\u306f\u306a\u3044\u30bf\u30a4\u30e0\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":539,"url":"https:\/\/clouds.tokyo\/blog\/mysql_date\/","url_meta":{"origin":704,"position":3},"title":"\u3010MySQL\u3011SQL\u3067\u65e5\u4ed8\u8a08\u7b97","author":"yamamoto","date":"2008\u5e749\u67089\u65e5","format":false,"excerpt":"SQL\u4e0a\u3067\u65e5\u4ed8\u3092\u8a08\u7b97\u3059\u308b\u66f8\u5f0f\u3001\u305f\u307e\u306b\u4f7f\u304a\u3046\u3068\u3059\u308b\u3068\u5fd8\u308c\u3066\u307e\u3059\u3088\u306d\u3002 \u3068\u308a\u3042\u3048\u305aDATE_ADD\u3060\u3051\u899a\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1456,"url":"https:\/\/clouds.tokyo\/blog\/cron-mohth-last\/","url_meta":{"origin":704,"position":4},"title":"\u3010Linux\u3011cron\u3092\u6708\u672b\u306b\u5b9f\u884c\u3057\u305f\u3044\u3068\u304d\u306e\u8a2d\u5b9a","author":"yamamoto","date":"2021\u5e748\u670821\u65e5","format":false,"excerpt":"cron\u3067\u6708\u672b\u306b1\u56de\u5b9f\u884c\u3057\u305f\u3044\u3068\u304d\u3001 \u6708\u306b\u3088\u3063\u3066\u6708\u672b\u306e\u65e5\u4ed8\u306f\u5909\u308f\u308b\u306e\u3067\u3001\u3069\u3046\u6307\u5b9a\u3059\u308c\u3070\u3088\u3044\u304b\u3002 \u5b9f\u884c\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1879,"url":"https:\/\/clouds.tokyo\/blog\/gws_license\/","url_meta":{"origin":704,"position":5},"title":"Google Workspace\u3067\u9593\u9055\u3048\u3066\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u3057\u307e\u3063\u305f","author":"yamamoto","date":"2025\u5e7410\u670822\u65e5","format":false,"excerpt":"Google Workspace\u306e\u7ba1\u7406\u8005\u3092\u9577\u3044\u3053\u3068\u3084\u3063\u3066\u3044\u307e\u3059\u304c\u3001 \u6848\u4ef6\u3067Google Worksp\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/704"}],"collection":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":5,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/704\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}