Hi there,
over the last few releases, AbtTimestamp has undergone some changes, most of the time breaking some code in customers' applications.
VA 8 seems to not make a difference here. We have some code to serialize timestamps by saving the number of (the smallest possible units - was milli, is now microseconds since I think VAST 6). With Version 7.0 we used timestampValue and timestampValue: , but at least in VA 8 Beta 1 these are gone. The method microSeconds only returns the number of microSeconds that exceed the milliSeconds, and it seems there is no getter / setter /creation method for a total number ogf microSeconds. To make things even more complicated, milliSeconds: is marked as depracated.
Therefore we are faced with two annoyances:
1) our code is broken (again) due to changes to the class
2) I can't find an obvious way to fix it
What would you suggest?
* Convert an AbtTimestamp to a DateAndTime instance for (de-)serializing (there seems to be no method to convert DateAndTime into an AbtTimestamp, btw. Only AbtTimestamp implenments abtAsTimestamp)
* Access the date, time and microseconds values separately and doing the math
Not using AbtTimestamp is not an option, because there's a lot of legacy code using the class, and loads of data is stored using timestamps. This data is mostly stored in DB2 on z/OS, and there Timestamps have microSeconds. DateAndTime doesn't have microseconds...
So in addition to answering my question above, I'd ask Instantiations to consider implementing timestampValue or an equivalent method in VA 8. We need to get/set the number of microseconds since base day. In Beta 1 find no valid solution for this problem...
cu and thx
Joachim