Subsecond Timestamp manipulation
Posted: Thu Apr 19, 2007 8:59 am
I need to subtract one millisecond from a Timestamp in a Transform stage. However, TimestampFromSecondsSince is apparently only partially-compatible with subsecond times. For example, this derivation:
TimestampFromSecondsSince(-.001, FunneledData.TRANSACTION_TIME)
yields this result:
Input :2007-04-11 15:42:28.113000
Output:2007-04-11 15:42:27.999000
I expected:2007-04-11 15:42:28.112000
It appears to round down to the full second and then subtract the partial second. Any input or alternative suggestions are appreciated.
Note that no BASIC transforms are an option I'm told because we are using parallel jobs.
TimestampFromSecondsSince(-.001, FunneledData.TRANSACTION_TIME)
yields this result:
Input :2007-04-11 15:42:28.113000
Output:2007-04-11 15:42:27.999000
I expected:2007-04-11 15:42:28.112000
It appears to round down to the full second and then subtract the partial second. Any input or alternative suggestions are appreciated.
Note that no BASIC transforms are an option I'm told because we are using parallel jobs.