i was wonderring if anyone had a little tidbit of code that uses the time() function to generate the unix timestamp (seconds from the unix epoch) that is the very beginning of the next day (12:00 midnight).
i want make a cookie expire exactly at midnight the day it is set, no matter when it is set. the best i can seem to do is get it to last for 24 hours.
thanx for any code posted ...
time() question ...
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
strtotime('tomorrow 00:00:00');why do i always miss these little helpful functions? man!
i was in the process of writing this function that divided the days from the epoch and took the remainder and figured out what was left over.
gosh, it was starting to get wiked.
well, i thank you for giving me something almost too easy it seems unfair to my programming abilities (or lack thereof).
i was in the process of writing this function that divided the days from the epoch and took the remainder and figured out what was left over.
gosh, it was starting to get wiked.
well, i thank you for giving me something almost too easy it seems unfair to my programming abilities (or lack thereof).