If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > SUBTIME() vs TIMEDIFF()

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-26-04, 21:06
shibby1011ph shibby1011ph is offline
Registered User
 
Join Date: Oct 2003
Location: Cebu City
Posts: 9
SUBTIME() vs TIMEDIFF()

In mysql v4, there are additional date and time functions such as SUBTIME and TIMEDIFF. What's the difference between the two? From what i've read in the mysql documentation manual, they pertain to the same thing.

I was planning on using it in my query for computing employee lates. For example, an employee's shift is from 7am - 4pm and he comes in at 7:30am. I would like to use either of the time functions to compute the number of minutes late. Same goes for overtime and undertime.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On