So I'm working on some code to interface with a webservice using PHP
and they require that a UNIX (Epoch) timestamp be passed to
retrieve data which has been modified from that date. No problem.
I use something like the following to generate the timestamp:
<cfset date = dateAdd("d",-1, now())>
<cfset date = createODBCDateTime(date)>
<cfset udate = date.getTime()>
Unfortunately that generates a 64-bit timestamp, which I found trying
to validate the date at http://www.unixtimestamp.com/index.php and
through digging around in java docs. Instead I need to pass a 32-
bit timestamp.
Does anyone have an idea of how to convert the timestamp to 32-bit?
I've dug around for awhile and it seems that java.util.Calendar 's
getTime() returns 32-bit, but I'm unaware of any CF Date/Time
functions which use that under the hood.
Thanks,
Jon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276796
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4