私は初めて日付を処理しようとしています。Flashでそれについて何かをしましたが、それは異なります。
私には2つの異なる日付があり、それらとの時間と日の違いを確認したいのですが、例が多すぎますが、私が探しているものではありません。
<?php
$now_date = strtotime (date ('Y-m-d H:i:s')); // the current date
$key_date = strtotime (date ("2009-11-21 14:08:42"));
print date ($now_date - $key_date);
// it returns an integer like 5813, 5814, 5815, etc... (I presume they are seconds)
?>
どうすればそれを時間または日に変換できますか?