Stick the complied class in web-inf\classes and createObject("java",
className) should instantiate it iirc.One thing I've wondered about is how does CF handle a java class compiled with a different JRE version that CF is running on top of work? I assume this should be avoided...but I'm not sure. -- jon mailto:[EMAIL PROTECTED] Monday, July 7, 2003, 9:54:21 AM, you wrote: CD> Not sure, I just threw that together in 2 mins, CD> From the command line, its just.. CD> Java formatDate 1057580739 CD> Cfobject should be able to do it, I'll have quick play. CD> I can re-write it as a CFX in about another 2 mins tho if you'd prefer. CD> -----Original Message----- CD> From: Tony Weeg [mailto:[EMAIL PROTECTED] CD> Sent: 07 July 2003 14:54 CD> To: CF-Talk CD> Subject: java class - how to (was RE: Date Time (GMT 1970)) CD> hey craig, how would one use that class in cfmx? CD> thanks. CD> tony weeg CD> uncertified advanced cold fusion developer CD> tony at navtrak dot net CD> www.navtrak.net CD> office 410.548.2337 CD> fax 410.860.2337 CD> -----Original Message----- CD> From: Craig Dudley [mailto:[EMAIL PROTECTED] CD> Sent: Monday, July 07, 2003 9:48 AM CD> To: CF-Talk CD> Subject: RE: Date Time (GMT 1970) CD> Here, this java class works, CD> Pass it your seconds values and it spits back a formatted date. CD> import java.text.SimpleDateFormat; CD> import java.util.*; CD> public class formatDate{ CD> public static void main(String args[]) { CD> String seconds = args[0]; CD> long secs = Integer.parseInt(seconds); CD> long millseconds = secs * 1000; CD> Date dateObj = new Date(millseconds); CD> SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd CD> HH:mm:ss"); CD> String formattedDate = sdf.format(dateObj); CD> System.out.println(formattedDate); CD> } CD> } CD> -----Original Message----- CD> From: Shahzad.Butt [mailto:[EMAIL PROTECTED] CD> Sent: 07 July 2003 14:18 CD> To: CF-Talk CD> Subject: RE: Date Time (GMT 1970) CD> I've been told that DateAdd() sucks on MX if the date is within DST?? CD> -----Original Message----- CD> From: Craig Dudley [mailto:[EMAIL PROTECTED] CD> Sent: 07 July 2003 14:04 CD> To: CF-Talk CD> Subject: RE: Date Time (GMT 1970) CD> #dateformat(dateadd("s",1057580739,"1/1/1970"),"yyyy/mmm/dd")# CD> = 2003/Jul/07 CD> -----Original Message----- CD> From: Shahzad.Butt [mailto:[EMAIL PROTECTED] CD> Sent: 07 July 2003 13:58 CD> To: CF-Talk CD> Subject: RE: Date Time (GMT 1970) CD> That's an example CD> 1057580739 CD> I think it should be converted to 7th July 2003, 13:25 or something like CD> that. CD> -----Original Message----- CD> From: Robertson-Ravo, Neil (RX) CD> [mailto:[EMAIL PROTECTED] CD> Sent: 07 July 2003 13:17 CD> To: CF-Talk CD> Subject: RE: Date Time (GMT 1970) CD> is it logging in julian format? or actually in seconds? can you provide CD> an example of what a log looks like... CD> -----Original Message----- CD> From: Tom Smith [mailto:[EMAIL PROTECTED] CD> Sent: 07 July 2003 13:14 CD> To: CF-Talk CD> Subject: Re: Date Time (GMT 1970) CD> are you getting the date in seconds, if so, use dateFormat() and it CD> should work fine:) CD> ----- Original Message ----- CD> From: "Shahzad.Butt" <[EMAIL PROTECTED]> CD> To: "CF-Talk" <[EMAIL PROTECTED]> CD> Sent: Monday, July 07, 2003 1:09 PM CD> Subject: RE: Date Time (GMT 1970) >> We have got a software running to LOG telephone calls and that >> software has got its own DB and date/time it is logging call is in >> seconds starting from Midnight (00:00:00) January 1, 1970. Now I want >> to run report with some understandable date/time format - so I need a >> conversion mechanism. >> >> -----Original Message----- >> From: Craig Dudley [mailto:[EMAIL PROTECTED] >> Sent: 07 July 2003 12:55 >> To: CF-Talk >> Subject: RE: Date Time (GMT 1970) >> >> >> tbh I don't quite understand what you are trying to do. >> >> Are you trying to convert a java/javascript milliseconds from epoch >> value to GMT? >> >> -----Original Message----- >> From: Shahzad.Butt [mailto:[EMAIL PROTECTED] >> Sent: 07 July 2003 12:51 >> To: CF-Talk >> Subject: Date Time (GMT 1970) >> >> >> Any custom tag / UDF which can convert date/time value with GMT >> (Starting from Midnight January 1970) and it should go backward as >> well converting GMT (1970) to normal date/time? >> >> Thanks >> Shaz >> >> >> >> >> CD> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

