Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > why java timestamp format is different form php or normal unix format

Reply
Thread Tools

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

 
 
islamelnaggar
Guest
Posts: n/a
 
      02-24-2008
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
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      02-24-2008
On Sun, 24 Feb 2008 06:35:20 -0800 (PST), islamelnaggar
<(E-Mail Removed)> 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.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
 
 
 
islamelnaggar
Guest
Posts: n/a
 
      02-24-2008
On 24 , 16:41, Roedy Green <(E-Mail Removed)>
wrote:
> On Sun, 24 Feb 2008 06:35:20 -0800 (PST), islamelnaggar
> <(E-Mail Removed)> 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.
> --
>
> 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
 
Reply With Quote
 
Arne Vajhøj
Guest
Posts: n/a
 
      02-24-2008
islamelnaggar wrote:
> On 24 فبراير, 16:41, Roedy Green <(E-Mail Removed)>
> wrote:
>> On Sun, 24 Feb 2008 06:35:20 -0800 (PST), islamelnaggar
>> <(E-Mail Removed)> 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
 
Reply With Quote
 
islamelnaggar
Guest
Posts: n/a
 
      02-24-2008
On 24 فبراير, 17:05, Arne Vajhøj <(E-Mail Removed)> wrote:
> islamelnaggar wrote:
> > On 24 فبراير, 16:41, Roedy Green <(E-Mail Removed)>
> > wrote:
> >> On Sun, 24 Feb 2008 06:35:20 -0800 (PST), islamelnaggar
> >> <(E-Mail Removed)> 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


thank you very much sir
islam elnaggar
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Training Institute In Delhi, Live Projects on PHP. Short TermPHP Courses, PHP Scripts, PHP Training with Live Projects. Rajive Narain Java 0 09-18-2009 10:47 AM
Convert unix timestamp to date/time in a specified format Andyza ASP General 6 03-05-2009 12:24 AM
why java timestamp format is different form php or normal unix format islamelnaggar Java 0 02-24-2008 02:35 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Keep Unix Timestamp format with Localtime function triwolf Perl Misc 2 02-06-2006 01:14 AM



Advertisments