DOORS / DXL object attribute "Last Modified On" including time?

4.3k views Asked by At

I understand how to access an object's modification date using the Last Modified On attribute. Is there any hidden / undocumented way to access the modification time with DOORS 9.5? In my case, I want to identify changes since a certain daytime, thus the date is not precise enough.

According to this post at the IBM forum, the attribute was supposed to return date and time. However, the output of this statement:

Date lastModified = obj."Last Modified On"
print "dateAndTime = " (dateAndTime(lastModified)) "\tlastModified = " lastModified "\tdateOnly = " dateOnly(lastModified) "\n"

is in my case

dateAndTime = 08/04/14 00:00:00     lastModified = 04 August 2014   dateOnly = 04 August 2014

and I guess that this means that the change time was not provided (correctly).

2

There are 2 answers

0
Twonky On BEST ANSWER

Section "History" of the DXL manual describes the function Date lastModifiedTime({Module|Object|Link}) which provides the desired time.

2
Steve Valliere On

Unfortunately the Last Modified On attribute is only storing the date without a time. In order to get the time of the last modification, you would need to step through the history records on the object and get the time from the last record. This will also be an issue because any object that hasn't changed since the baseline will have no history records against it.