Subtracting times

How do I subtract two time from one another in MYSQL?

--
Kind Regards,
Otto

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules [at] m .gmane.org
Werner Otto [ Mo, 14 Juni 2004 15:16 ] [ ID #44127 ]

Re: Subtracting times

wot [at] dcs.kcl.ac.uk (Werner Otto) writes:

> How do I subtract two time from one another in MYSQL?

http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.ht ml

TIMEDIFF() if your MySQL is 4.1.1 or later. Otherwise, maybe
convert both arguments to UNIX_TIMESTAMP() and subtract.
--
Jamie McCarthy
http://mccarthy.vg/
jamie [at] mccarthy.vg

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules [at] m.gmane.org
Jamie McCarthy [ Mo, 14 Juni 2004 17:15 ] [ ID #44128 ]

Re: Subtracting times

wot [at] dcs.kcl.ac.uk (Werner Otto) writes:

> How do I subtract two time from one another in MYSQL?

http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.ht ml

TIMEDIFF() if your MySQL is 4.1.1 or later. Otherwise, maybe
convert both arguments to UNIX_TIMESTAMP() and subtract.
--
Jamie McCarthy
http://mccarthy.vg/
jamie [at] mccarthy.vg

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=3Dgcdmp-msql-mysql-modules [at] m.gmane.org
Jamie McCarthy [ Mo, 14 Juni 2004 17:15 ] [ ID #180678 ]
Datenbanken » gmane.comp.db.mysql.perl » Subtracting times

Vorheriges Thema: Hyperlink value
Nächstes Thema: Subtracting times