<?php
$now = date('Y-m-d H:i:s');
echo $now,"\n";
$now = time();
echo $now,"\n";
echo date('Y-m-d H:i:s', time());
$now = strtotime(date('Y-m-d H:i:s'));
echo $now,"\n";
echo $now - strtotime('2020-08-20 13:08:00'),"\n";
echo strtotime('2020-08-20 13:14:58') - strtotime('2020-08-20 13:08:00');
echo strtotime('+1 day');
echo "\n";
echo strtotime('next day');
echo strtotime('next Monday');
$date = date_create("https://files.jxasp.com/image/2020-08-31");
date_add($date,date_interval_create_from_date_string("40 days"));
echo date_format($date,"Y-m-d");
$date = date_create("https://files.jxasp.com/image/2020-08-31");
date_add($date,date_interval_create_from_date_string("1 days"));
echo date_format($date,"Y-m-d");
?>