Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C++ (https://www.askmehelpdesk.com/forumdisplay.php?f=439)
-   -   Difference of time function (https://www.askmehelpdesk.com/showthread.php?t=159525)

  • Dec 5, 2007, 08:17 AM
    jen phoenix
    Difference of time function
    How to program a problem that needs the difference of time..? example,the sorting started at 10:15 and ends at 10:30.so the difference time in order the numbers to be sorted is 15min..
  • Dec 5, 2007, 08:35 AM
    ScottGem
    This depends more on how time is stored then a C++ function. Since C++ doesn't have a native data store, you have to take that into account. If the data is stored as a text string, then you need to parse out the time values. Many databases store date/time values as numbers. For example, Access and SQL Server store them as a double precision number where the integer portion represents the number of days from a base date and the time is represented as a fraftin of a 24 hour day.

  • All times are GMT -7. The time now is 05:44 PM.