[PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
Hello, My journey of learning PHP is going well, so i've decided to make a small program which works out the difference between two times and records the data in a text file. I've searched the PHP manual for functions which can help me out, and I discovered the function Date_diff (

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
Hi Tom, Thanks for the reply, I believe I have a fair understanding of functions, and I have followed the example on the PHP manual page ( http://uk3.php.net/manual/en/function.date-diff.php ), ideally I want to know how to use the class DateTime::diff, how can I use the DateTime::diff to

RE: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Dajve Green
on production servers). If you need to know what version of PHP you're running, use: phpversion() or phpinfo() -Original Message- From: Matthew Croud [mailto:m...@obviousdigital.com] Sent: 16 June 2009 12:42 To: Tom Chubb Cc: PHP General list Subject: Re: [PHP] difference between two

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
...@obviousdigital.com] Sent: 16 June 2009 12:42 To: Tom Chubb Cc: PHP General list Subject: Re: [PHP] difference between two times? Date_diff and DateTime::diff Hi Tom, Thanks for the reply, I believe I have a fair understanding of functions, and I have followed the example on the PHP manual page ( http

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Tom Chubb
version of PHP you're running, use: phpversion() or phpinfo() -Original Message- From: Matthew Croud [mailto:m...@obviousdigital.com] Sent: 16 June 2009 12:42 To: Tom Chubb Cc: PHP General list Subject: Re: [PHP] difference between two times? Date_diff and DateTime::diff Hi Tom

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Ian
] Sent: 16 June 2009 12:42 To: Tom Chubb Cc: PHP General list Subject: Re: [PHP] difference between two times? Date_diff and DateTime::diff Hi Tom, Thanks for the reply, I believe I have a fair understanding of functions, and I have followed the example on the PHP manual page

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Matthew Croud
() or phpinfo() -Original Message- From: Matthew Croud [mailto:m...@obviousdigital.com] Sent: 16 June 2009 12:42 To: Tom Chubb Cc: PHP General list Subject: Re: [PHP] difference between two times? Date_diff and DateTime::diff Hi Tom, Thanks for the reply, I believe I have a fair understanding

RE: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Dajve Green
2009 15:55 To: Matthew Croud Cc: Dajve Green; PHP General list Subject: Re: [PHP] difference between two times? Date_diff and DateTime::diff The first example here may help: http://us3.php.net/manual/en/function.time.php 2009/6/16 Matthew Croud m