Isn't unix time equivalent to the java date divided by 1000?  I thought
the java date is in milliseconds since Jan 1, 1970.

lol... well, at least that works for us.  We have unix times tucked away
in database fields that we multiply by 1000 to get java dates, like so:

        info.submitdate = new Date( rs.getLong( col++ ) * 1000 );

YMMV.

Owen

On Wed, 2002-03-13 at 09:57, SUPRIYA MISRA wrote:
> 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]>
-- 
USMail:   Employment Specialists, LLC, 130 S. First, Ann Arbor, MI 48104
Phone:    +1 734 213-9500       FAX:    +1 240 266-2535
mailto:[EMAIL PROTECTED]       http://www.careersite.com/~osm/


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to