I have the following code to determine the unix timestamp of midnight tomorrow. It seems pretty hacky to me and I wondered if anyone had a more elegant solution.
date("U", strtotime(date("Y-m-d 00:00:00", strtotime("tomorrow"))));
I have the following code to determine the unix timestamp of midnight tomorrow. It seems pretty hacky to me and I wondered if anyone had a more elegant solution.
date("U", strtotime(date("Y-m-d 00:00:00", strtotime("tomorrow"))));
This should be enough:
<?php
$t = strtotime('tomorrow');
?>
You can also set a time:
<?php
$t = strtotime('tomorrow 14:55');
?>