This content has been marked as final. Show 3 replies
JavaCast-long is buggy.
Without going into details, do the calculations on the Java-side, sorry, no better option, even if that means writing a small Java-class yourself.
> I have a vendor Java object that returns a long representation of a timestamp.
> Unfortunately for me, this long has to be multiplied by 1000 before it becomes
unix epoch offset, *seconds* since 1-1-1970.
> dteStartTime = CreateObject("java", "java.sql.Timestamp");
well if you don't care about the ms part of your date (and you really can't
since your java class is returning unix epoch):
where unixEpoch is the value returned by your java class.
btw if you want to get the java epoch offset (ms since 1-1-1970) for a given date: