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

Discussion in 'Java' started by islamelnaggar, Feb 24, 2008.

  1. 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
     
    islamelnaggar, Feb 24, 2008
    #1
    1. Advertising

  2. islamelnaggar

    Roedy Green Guest

    On Sun, 24 Feb 2008 06:35:20 -0800 (PST), 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.
    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
     
    Roedy Green, Feb 24, 2008
    #2
    1. Advertising

  3. Re: why java timestamp format is different form php or normal unixformat

    On 24 ÝÈÑÇíÑ, 16:41, Roedy Green <>
    wrote:
    > On Sun, 24 Feb 2008 06:35:20 -0800 (PST), 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.
    > --
    >
    > 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
     
    islamelnaggar, Feb 24, 2008
    #3
  4. Re: why java timestamp format is different form php or normal unixformat

    islamelnaggar wrote:
    > On 24 Ùبراير, 16:41, Roedy Green <>
    > wrote:
    >> On Sun, 24 Feb 2008 06:35:20 -0800 (PST), 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.

    >
    > 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
     
    Arne Vajhøj, Feb 24, 2008
    #4
  5. Re: why java timestamp format is different form php or normal unixformat

    On 24 Ùبراير, 17:05, Arne Vajhøj <> wrote:
    > islamelnaggar wrote:
    > > On 24 Ùبراير, 16:41, Roedy Green <>
    > > wrote:
    > >> On Sun, 24 Feb 2008 06:35:20 -0800 (PST), 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.

    >
    > > 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
     
    islamelnaggar, Feb 24, 2008
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,238
    Smokey Grindel
    Dec 2, 2006
  2. islamelnaggar
    Replies:
    0
    Views:
    512
    islamelnaggar
    Feb 24, 2008
  3. Rajive Narain
    Replies:
    0
    Views:
    2,085
    Rajive Narain
    Sep 18, 2009
  4. Andyza
    Replies:
    6
    Views:
    1,494
    Evertjan.
    Mar 5, 2009
  5. triwolf
    Replies:
    2
    Views:
    249
    Joe Smith
    Feb 6, 2006
Loading...

Share This Page