Hello,
for exemple, with a hour in MySQL format (hh:mm:ss), i want to subtract 02:50:35 hours from 35:00:00 hours. Is there a way to subtract hours bigger than 24 hours?
Thank you!
Subtract hours
Moderator: General Moderators
Re: Subtract hours
did you mean in PHP or SQL? you can do this to subtract hours from a timestamp:
Code: Select all
SELECT '2009-08-08 02:50:00' - INTERVAL 35 HOUR-
proveyourselfthom
- Forum Newbie
- Posts: 5
- Joined: Sat Aug 08, 2009 11:31 am
Re: Subtract hours
I'm talking about php but this time is on db.
Thank's guys!
Thank's guys!