- time: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
//$writer = new XMLWriter();
//echo var_dump(getdate(strtotime("1 day")));
echo date("Y-m-d H:m:s", time())."\n";
echo date("Y-m-d H:m:s", strtotime("+20 minute"));
//echo date("Y-m-t", strtotime("first day of previous month") ) ;