Worked Great --Had to make sure the variable was a Long. Thanks import java.util.*; public class dated{ public static void main (String args[]){ Date d=new Date(1001091454*1000L); System.out.println(d);
} >From: "Robert Nocera" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> >Subject: RE: Help with Oracle dates from Secs passed since 1970 >Date: Wed, 13 Mar 2002 10:26:04 -0500 > >You can just convert seconds into milliseconds (*1000) and then use >java.util.Date(milliseconds) to get your date which is Sep 21, 12:57:34 >EDT 2001. > > >Robert Nocera >New England Open Solutions >www.neosllc.com >"You supply the vision, we'll do the rest." > > >-----Original Message----- >From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, March 13, 2002 9:58 AM >To: [EMAIL PROTECTED] >Subject: Help with Oracle dates from Secs passed since 1970 > >If anyone has a ready made solution to convert an UNIX TIME of seconds >passed 1970 into java or oracle dates, please help. >The number I get is 1001091454 which seconds passed since Jan 1st 1970. > >This needs to be converted to a valid oracle date. The answer will be a >date >in 2001. > > > > > > >_________________________________________________________________ >Get your FREE download of MSN Explorer at >http://explorer.msn.com/intl.asp. > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>