[PHP] weird timestamp problem

2006-12-07 Thread Amanda Emily
I am working on an app that has 15 minute blocks of time to schedule meeting room reservations and have ran into an rather odd problem. Any ideas as to what could be causing this I am expecting the block of code output this: 7:00PM 7:15PM 7:15PM 7:30PM 7:30PM 7:45PM etc from 5:00

Re: [PHP] weird timestamp problem

2006-12-07 Thread Larry Garfield
I'm not sure why you'd have that problem, but I definitely think you're over-engineering the code. That could well be why you're having a problem. You can greatly simplify it like so: $start_c = mktime(5, 0, 0, $month_t, $day_t, $year_t); $end_c = mktime(21, 30, 0, $month_t, $day_t, $year_t);