Results 1 to 3 of 3
  1. #1
    Abina's Avatar
    Abina is offline Master
    Join Date
    Dec 2009
    Location
    United States
    Posts
    1,073
    Thanks
    1
    Thanked 6 Times in 4 Posts
    Feedback Score
    0

    Default Coldfusion experts!!! In need of your expertise!!!

    I'm trying to do a calculation using timestamps. All I need is the time difference between the two stamps. No need for the dates.

    example:

    (2009-08-07 02:16:34) - (2009-08-07 01:36:01)

    I just need "2:16:34" - "1:36:01" but do not know enough coldfusion to get it to display properly. What is the proper calculation to get it to show a total of "40:33"?

  2. #2
    numberone's Avatar
    numberone is offline Senior
    Join Date
    Jan 2010
    Posts
    623
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    Use dateDiff("n", d1, d2) to calculate the difference in minutes. Then use basic math to convert the total number of minutes to hours:minutes format.


  3. #3
    samson77 is offline Freshman
    Join Date
    Dec 2010
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    The coldfusion developer cold fusion developer summary develop, document and maintain internet enabled applications for company internal and external internet activities.Thanks for sharing information.

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2010, 11:35 AM
  2. Capturing Referrer Using ColdFusion.
    By Abina in forum ColdFusion
    Replies: 1
    Last Post: 02-02-2010, 11:31 AM
  3. JavasScript variable to Coldfusion
    By Abina in forum ColdFusion
    Replies: 1
    Last Post: 02-02-2010, 11:11 AM
  4. Replies: 0
    Last Post: 01-09-2010, 03:13 PM
  5. What is coldfusion?
    By wujijiangjun in forum ColdFusion
    Replies: 8
    Last Post: 01-05-2010, 09:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS