source:
branches/dev/html/test/uehara/time_test.php
@
8
| Revision 8, 325 bytes checked in by root, 19 years ago (diff) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | $end_date = date("Y/m/d", time()); |
| 4 | $start_date = date("Y/m/d",strtotime("-10 year" ,strtotime($end_date))); |
| 5 | $end_date = date("Y/m/d",strtotime("1 day" ,strtotime($end_date))); |
| 6 | for($i=0; $i<20; $i++) { |
| 7 | $start_date = date("Y/m/d",strtotime("-10 year",strtotime($start_date))); |
| 8 | echo $start_date."<br/>\n"; |
| 9 | } |
| 10 | |
| 11 | ?> |
Note: See TracBrowser
for help on using the repository browser.
