Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- putenv("TZ=Europe/Copenhagen");
- $secsLeft = "";
- $nextDate = "";
- if (strtotime("21:20") < time())
- {
- $secsLeft = strtotime("tomorrow 21:20") - time();
- $nextDate = date("Ymd", strtotime("tomorrow"));
- }
- else
- {
- $secsLeft = strtotime("21:20") - time();
- $nextDate = date("Ymd");
- }
- ?>
- <general>
- <secsLeft><? echo $secsLeft; ?></secsLeft>
- <nextDate><? echo $nextDate; ?></nextDate>
Add Comment
Please, Sign In to add comment