Hi all,
Does anyone have a date-diff function in PHP that *doesn't* use Unix
time stamps? I need to calculate differences between two date values,
but the range well exceeds that which "date" supports on our server.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development S
Hello Adam,
Since timestamps are in seconds you just subtract them and then use date
to convert it to a more human readable format.
You could also use the strtotime function to convert a string to a
timestamp.
PHP has many date and time functions, take a look at
http://www.php.net/manual/en/
Greetings all,
A while ago I was using asp and when I started using php the harder
thing to learn was "Dealing with dates". There isn't a datediff function
like asp.. Instead you have timestamps. Powerful it may be but a little
hard to learn about and use. Other wise I find php to be very
3 matches
Mail list logo