ProphecyVI wrote:
> 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");
> dteStartTime.init(lngStartTime);
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):
<cfscript>
startDate=createDate(1970,1,1);
dt=dateAdd("s",unixEpoch,startDate);
</cfscript>
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:
<cfscript>
t=now();
t=t.getTime();
</cfscript>