âæå»ã®å·®ã®è¨ç® 2ã¤ã®æ¥ä»ã®éã®æéãç¥ãããâDate ã使ãã æ°ãã« Date_Span ãªãã¸ã§ã¯ããä½æãã¦setFromDateDiffã¡ã½ãã ã使ç¨ããtoDaysãç¨ãã¦æ£ç¢ºãªæ¥æ°ãåå¾ãã¾ãã ä¾ 40-3æå»ã®å·®ã®è¨ç® <?php require_once 'Date.php'; $someDate = new Date('1813-02-23T05:34:23'); $otherDate = new Date('1789-12-21T18:23:42'); $span = new Date_Span(); $span->setFromDateDiff($someDate, $otherDate); // æå»ã®å·®ãæ¥ä»åä½ã§è¡¨ç¤ºãã¾ã: 8463,46575231 echo $span->toDays(); // æå»ã®å·®ãå¹´æ°ã§è¡¨ç¤ºãã¾ã: echo (int)
{{#tags}}- {{label}}
{{/tags}}