S
sconeek
Hi all,
I am trying to compare 2 timestamps. The idea is that if the last
modified date is longer than 10 seconds display an error message. Now I
am comparing 2 timestamps modifiedDate and lastEditTimeStamp and if
their difference is greater than 10000 (10sec) display a message, but
this doesnt seem to work. Can some genius please help me out.
The other approach is that, every 8 seconds check if the last modified
date has changed or not and then display a message accordingly.
This is what I have done so far,
if ((modifiedDate.getTime() - lastEditTimeStamp.getTime()) > 10000)
{
Debug.println("BUG 001");
this.setSysStatus(CONTROL_ERROR_MSG);
}
All help will be greatly appreciated.
Cheers.
I am trying to compare 2 timestamps. The idea is that if the last
modified date is longer than 10 seconds display an error message. Now I
am comparing 2 timestamps modifiedDate and lastEditTimeStamp and if
their difference is greater than 10000 (10sec) display a message, but
this doesnt seem to work. Can some genius please help me out.
The other approach is that, every 8 seconds check if the last modified
date has changed or not and then display a message accordingly.
This is what I have done so far,
if ((modifiedDate.getTime() - lastEditTimeStamp.getTime()) > 10000)
{
Debug.println("BUG 001");
this.setSysStatus(CONTROL_ERROR_MSG);
}
All help will be greatly appreciated.
Cheers.