why java timestamp format is different form php or normal unix format

I

islamelnaggar

i'm wrting an application both in php and java
i notice that java unixstamp is differenet from php
any one know why ?

java format
1203862011828
php and unix format
1203862049

notice the length of both that make big different

thanks

islam el-naggar
 
R

Roedy Green

i'm wrting an application both in php and java
i notice that java unixstamp is differenet from php
any one know why ?

the original Unix format was only 32 bits. It would expire in this
century. Java format is 64 bits, more optimistic about how long
mankind will last before going extinct.
 
I

islamelnaggar

the original Unix format was only 32 bits. It would expire in this
century.  Java format is 64 bits, more optimistic about how long
mankind will last before going extinct.

thanks for your quick reply but do u know how to resolve this problem
i mean for example convert formats
thanks
 
A

Arne Vajhøj

islamelnaggar said:
thanks for your quick reply but do u know how to resolve this problem
i mean for example convert formats

It is seconds and milliseconds since 1970 so *1000 and /1000 should
do the conversion.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top