Using this code,
<?php
$knowntide = strtotime('2005-05-28 12:45');
$current = date(U);
$interval = (12 * 3600) + (25 * 60);
$num_tides_passed = floor(($current - $knowntide) / $interval);
$last_tide = $knowntide + ($interval * $num_tides_passed);
$next_high = $last_tide + (12 * 3600);
$next_low = $last_tide + (6 * 3600) + (13 * 60);
echo $next_high
?>
I get a Unix Time Stamp for a return. How do I turn it back into a 'normal date' eg: 05/30 9:00pm?
The manual has plenty of information if I wanted to display seconds or hours since or ahead, but I couldn't find anywhere that had a unix time stamp to 'normal date' function.
Thank you