Skip to Content
author's profile photo Former Member
Former Member

FM to find the difference in the number of hours

hi all,

is there any function module to find out the difference between two time stamps on two different dates. say if an activity starts on 09/05/2007 at 11:23:24 and ends on 09/08/2008 at 14:24:26. it needs to find the number of hours between the two. for this case it should be:

75:01:02 hours:mins:secs.

or a FM which works in a way similar to the above functionality.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 11:59 AM

    Hi!

    Please check CCU_TIMESTAMP_DIFFERENCE fm.

    Regards

    Tamá

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 12:07 PM

    Use this FM - SD_DATETIME_DIFFERENCE.

    Pass Start date / Start time and End date / End Time and u ll get the difference.

    Note - U need to pass the time - dont leave it blank.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 12, 2007 at 12:13 PM

    Hi,

    Use FM SD_CALC_DURATION_FROM_DATETIME

    but this will not give the seconds difference

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.