strtotime and dates long long ago ...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ruud habets

    strtotime and dates long long ago ...

    while making an encyclopdie on my hometown (dutch,
    http://www.kgv.nl/index.php?id=610) i am trying to use dates prior to
    1970. birthdates in, let's say, 1615.

    i'm getting errors while working with these dates, for example when i am
    calculating which day of the week it is. the dates are stored in a
    mysql database.

    is there another way to convert stringtype dates to work with?

    ruud habets

  • DaWaN

    #2
    Re: strtotime and dates long long ago ...

    To create a timestamp for dates from Dec/13/1901 to Jan/19/2038

    For local time:
    mktime(int hour, int minute, int second, int month, int day, int year [, int
    is_dst])

    For GMT time:
    gmmktime(int hour, int minute, int second, int month, int day, int year [,
    int is_dst])

    --

    =============== ============
    DaWaN
    webmaster@dawan .com



    "ruud habets" <r.habets@kgv.n l> wrote in message
    news:3fee9dc5$0 $324$e4fe514c@n ews.xs4all.nl.. .[color=blue]
    > while making an encyclopdie on my hometown (dutch,
    > http://www.kgv.nl/index.php?id=610) i am trying to use dates prior to
    > 1970. birthdates in, let's say, 1615.
    >
    > i'm getting errors while working with these dates, for example when i am
    > calculating which day of the week it is. the dates are stored in a
    > mysql database.
    >
    > is there another way to convert stringtype dates to work with?
    >
    > ruud habets
    >[/color]


    Comment

    • DaWaN

      #3
      Re: strtotime and dates long long ago ...

      there is a way to configure the range of valid dates but I've never done it
      before. research deeper into those two functions and you'll find out

      --

      =============== ============
      DaWaN
      webmaster@dawan .com



      "ruud habets" <r.habets@kgv.n l> wrote in message
      news:3fee9dc5$0 $324$e4fe514c@n ews.xs4all.nl.. .[color=blue]
      > while making an encyclopdie on my hometown (dutch,
      > http://www.kgv.nl/index.php?id=610) i am trying to use dates prior to
      > 1970. birthdates in, let's say, 1615.
      >
      > i'm getting errors while working with these dates, for example when i am
      > calculating which day of the week it is. the dates are stored in a
      > mysql database.
      >
      > is there another way to convert stringtype dates to work with?
      >
      > ruud habets
      >[/color]


      Comment

      • Tom Thackrey

        #4
        Re: strtotime and dates long long ago ...


        On 28-Dec-2003, "DaWaN" <dawan57@hotmai l.com> wrote:
        [color=blue]
        > "ruud habets" <r.habets@kgv.n l> wrote in message
        > news:3fee9dc5$0 $324$e4fe514c@n ews.xs4all.nl.. .[color=green]
        > > while making an encyclopdie on my hometown (dutch,
        > > http://www.kgv.nl/index.php?id=610) i am trying to use dates prior to
        > > 1970. birthdates in, let's say, 1615.
        > >
        > > i'm getting errors while working with these dates, for example when i am
        > > calculating which day of the week it is. the dates are stored in a
        > > mysql database.
        > >
        > > is there another way to convert stringtype dates to work with?[/color][/color]
        [color=blue]
        > To create a timestamp for dates from Dec/13/1901 to Jan/19/2038
        >
        > For local time:
        > mktime(int hour, int minute, int second, int month, int day, int year [,
        > int
        > is_dst])
        >
        > For GMT time:
        > gmmktime(int hour, int minute, int second, int month, int day, int year [,
        > int is_dst])[/color]

        mktime returns a unix timestamp which is only good for dates between 1970
        and 2038 on Windows and Linux.


        --
        Tom Thackrey

        tom (at) creative (dash) light (dot) com
        do NOT send email to jamesbutler@wil lglen.net (it's reserved for spammers)

        Comment

        • CountScubula

          #5
          Re: strtotime and dates long long ago ...

          >[color=blue]
          > mktime returns a unix timestamp which is only good for dates between 1970
          > and 2038 on Windows and Linux.[/color]


          I hear Y2K.38 in the background ;)

          Mike Bradley
          http://gzen.myhq.info -- free online php tools

          Comment

          • Rahul Anand

            #6
            Re: strtotime and dates long long ago ...

            "DaWaN" <dawan57@hotmai l.com> wrote in message news:<6OCdnTnVR 59BgHKiRVn-hg@giganews.com >...[color=blue]
            > there is a way to configure the range of valid dates but I've never done it
            > before. research deeper into those two functions and you'll find out
            >
            > --
            >
            > =============== ============
            > DaWaN
            > webmaster@dawan .com
            >
            >
            >
            > "ruud habets" <r.habets@kgv.n l> wrote in message
            > news:3fee9dc5$0 $324$e4fe514c@n ews.xs4all.nl.. .[color=green]
            > > while making an encyclopdie on my hometown (dutch,
            > > http://www.kgv.nl/index.php?id=610) i am trying to use dates prior to
            > > 1970. birthdates in, let's say, 1615.
            > >
            > > i'm getting errors while working with these dates, for example when i am
            > > calculating which day of the week it is. the dates are stored in a
            > > mysql database.
            > >
            > > is there another way to convert stringtype dates to work with?
            > >
            > > ruud habets
            > >[/color][/color]

            I never tried but i guess this link will help:



            -- Rahul

            Comment

            Working...