Originally posted by: paul.brett
There is also a way to do this with WTX functions only:
=DATETONUMBER(CURRENTDATE())*24*60*60 gives us how many seconds from December 31, 1864 to today (you might have to remove 1 day from this value)
=TONUMBER(MID(TEXT(CURRENTTIME()),1,2))*60*60 gives us how many seconds in the hours since midnight
=TONUMBER(MID(TEXT(CURRENTTIME()),4,2))*60 gives us how many seconds in the minutes since the top of the hour
=TONUMBER(MID(TEXT(CURRENTTIME()),7,2)) gives us the seconds since the start of the current minute
Add them all up and then multiply by 1000 to get milliseconds since December 31, 1864.
Thank-you.
Paul.
Follow me on Twitter
#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender#DataExchange