PHPã§æ¥ä»è¨ç®ãDateTime::diff ãªã©ãå®è¡ãããã¨æã£ãããã©ããã§ããªãã phpversion() ãã¦ã¿ãããPHP5.2.13ã§ããã ããã¥ã¢ã«ã«ããã° DateTime::diff 㯠5.3 ãããªãã ããã§ã»ã»ã»orz ããã¯ããã§è«¦ãã¦ãä½ãã§ãããã¨ã¯ãªãã®ããªã¼ã¨æã£ã¦ããã¨ããã§ããã¡ããããããè¨ç®ããå¹´é½¢è¨ç®ããç®ã«ã¤ãããããã«èª¿æ»ããã¨ç¾ããã³ã¼ããè¦ãã (ä»æ¥ã®æ¥ä»-èªçæ¥)/10000ã®å°æ°ç¹ä»¥ä¸åæ¨ã¦ â»æ³ä»¤ã«ããå¹´é½¢è¨ç®ã®éè¦ãªäºæãç¥ã£ã¦ãã¦ãããã«ããã¤ãã®è¨èªã®ã³ã¼ããæ示ãã¦ããã return (int)((20100610 - 19800610)/10000); //php åæ¥ã¯-1ãå½æ¥ã¯+0ã§æ£ããè¨ç®åºæ¥ã¦ãããï¼ä¸è¨ä¾ã§è¨ãã°ï¼å¹´é½¢ã¯1980-2010ã§30ã¨ããã«ãããããããããã®æããã®æ¥ãçµéãã¦ããã®
{{#tags}}- {{label}}
{{/tags}}