keyongtech


  keyongtech > java > 02/2008

 #1  
02-24-08, 02:35 PM
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
 #2  
02-24-08, 02:41 PM
Roedy Green
On Sun, 24 Feb 2008 06:35:20 -0800 (PST), islamelnaggar
<islamelnaggar> wrote, quoted or indirectly quoted someone
who said :

>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.
 #3  
02-24-08, 02:44 PM
islamelnaggar
On 24 , 16:41, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Sun, 24 Feb 2008 06:35:20 -0800 (PST), islamelnaggar
> <islamelnag> wrote, quoted or indirectly quoted someone
> who said :
>> 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.
> --
>
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com


thanks for your quick reply but do u know how to resolve this problem
i mean for example convert formats
thanks
 #4  
02-24-08, 03:05 PM
Arne Vajhj
islamelnaggar wrote:
> On 24 فبراير, 16:41, Roedy Green <see_webs...@mindprod.com.invalid>
> wrote:
>> On Sun, 24 Feb 2008 06:35:20 -0800 (PST), islamelnaggar
>> <islamelnag> wrote, quoted or indirectly quoted someone
>> who said :
>>> 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.

>
> 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
 #5  
02-24-08, 03:07 PM
islamelnaggar
On 24 ??????, 17:05, Arne Vajhj <a> wrote:
> islamelnaggar wrote:
>> It is seconds and milliseconds since 1970 so *1000 and /1000 should

> do the conversion.
>
> Arne


thank you very much sir
islam elnaggar
Similar Threads
Convert unix timestamp to date/time in a specified format

The sUnixDate variable below contains a unix timestamp. I use the VBScript DateAdd function to convert it to a date/time variable whenever I want to display the date on my...

how to convert form (unix time * 1000) to datetime format

Hi All, We had stored date in (Unix time * 1000 ) in a column with float data type. I need to convert this number to datetime data type. When I run sql statement below...

converting Date() to unix timestamp format?

hi im trying to convert Date() into a unix timestamp so i can stick the result into a mysql db, please help!

Keep Unix Timestamp format with Localtime function

Is there a way to keep the normal unix timestamp calculated format and still use the LocalTime function in Perl? Or is there another function for doing something like...

Converting Java batch file from windows to unix format

My java application includes source files in packages, and jar library's in a lib directory. I have created a windows batch file that compiles all and then runs...


All times are GMT. The time now is 06:51 PM. | Privacy Policy