[PHP] Date Diff function

2004-06-28 Thread Richard Davey
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

Re: [PHP] Date Diff

2003-03-22 Thread Jason Sheets
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/

[PHP] Date Diff

2003-03-22 Thread Adam -
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