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

How to get the time difference (in seconds) between two timestamp fields?

Hi All,

I'm exploring validation expressions in SAP MDM Data Manager version

I have two timestamp fields, suppose Update Date and Update-GDS.

What I'm trying to do is prompt a warning when:

(Update Date minus Update-GDS) is greater than or equal to zero seconds


(Update Date minus Update-GDS) is less than or equal to 900 seconds

the bottomline is, Update Date must be equal or greater than to Update-GDS but Update Date must not exceed 900 seconds difference.

my initial try was:

(Update Date - Update-GDS)>=0 s AND (Update Date - Update-GDS)<=900 s

But it always returns true even the time difference between update date and update-gds is beyond the condition.

Can you please guide me through this?

Thank you very much in advance.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 05:10 AM


    ((Update Date - Update-GDS)>=0 s) AND( (Update Date - Update-GDS)<=900 s)

    Try the above code this might help.



    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.