PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
The Output is "January 07th 1970 05:00:00 PM"
I am trying to get the differance from $current_time and $end_time_and_date
[/quote]
Because you're trying to display the result of the difference as an actual date/time.
The difference that you're calculating is the number of seconds in a week: treated as a full date/time, that gives one week from the PHP base date/time (January 1st 1970 ). The additional variance in hours is a timezone offset.