How to represent a date in C

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

    How to represent a date in C

    Greetings,

    I have absolutely no idea how to represent a mysql date type in C.

    There doesn't seem to be a MYSQL_TIME type. Any help/suggestions would
    be greatly appreciated.

    Thanks
  • Aggro

    #2
    Re: How to represent a date in C

    Franz wrote:
    [color=blue]
    > Greetings,
    >
    > I have absolutely no idea how to represent a mysql date type in C.
    >
    > There doesn't seem to be a MYSQL_TIME type. Any help/suggestions would
    > be greatly appreciated.[/color]

    Handle it as a string, like varchar columns.

    Comment

    • Aggro

      #3
      Re: How to represent a date in C

      Franz wrote:
      [color=blue]
      > Greetings,
      >
      > I have absolutely no idea how to represent a mysql date type in C.
      >
      > There doesn't seem to be a MYSQL_TIME type. Any help/suggestions would
      > be greatly appreciated.[/color]

      Handle it as a string, like varchar columns.

      Comment

      • Aggro

        #4
        Re: How to represent a date in C

        Franz wrote:
        [color=blue]
        > Greetings,
        >
        > I have absolutely no idea how to represent a mysql date type in C.
        >
        > There doesn't seem to be a MYSQL_TIME type. Any help/suggestions would
        > be greatly appreciated.[/color]

        Handle it as a string, like varchar columns.

        Comment

        • Franz

          #5
          Re: How to represent a date in C

          Aggro <spammerdream@y ahoo.com> wrote in message news:<dRkXb.38$ di6.15@read3.in et.fi>...[color=blue]
          > Franz wrote:
          >[color=green]
          > > Greetings,
          > >
          > > I have absolutely no idea how to represent a mysql date type in C.
          > >
          > > There doesn't seem to be a MYSQL_TIME type. Any help/suggestions would
          > > be greatly appreciated.[/color]
          >
          > Handle it as a string, like varchar columns.[/color]

          Thanx!

          I presume that a blob or anything similar would also be represented by a string.
          On the date question - Does mysql require you to use a specific format?
          Thanks for your help.

          Comment

          • Franz

            #6
            Re: How to represent a date in C

            Aggro <spammerdream@y ahoo.com> wrote in message news:<dRkXb.38$ di6.15@read3.in et.fi>...[color=blue]
            > Franz wrote:
            >[color=green]
            > > Greetings,
            > >
            > > I have absolutely no idea how to represent a mysql date type in C.
            > >
            > > There doesn't seem to be a MYSQL_TIME type. Any help/suggestions would
            > > be greatly appreciated.[/color]
            >
            > Handle it as a string, like varchar columns.[/color]

            Thanx!

            I presume that a blob or anything similar would also be represented by a string.
            On the date question - Does mysql require you to use a specific format?
            Thanks for your help.

            Comment

            • Franz

              #7
              Re: How to represent a date in C

              Aggro <spammerdream@y ahoo.com> wrote in message news:<dRkXb.38$ di6.15@read3.in et.fi>...[color=blue]
              > Franz wrote:
              >[color=green]
              > > Greetings,
              > >
              > > I have absolutely no idea how to represent a mysql date type in C.
              > >
              > > There doesn't seem to be a MYSQL_TIME type. Any help/suggestions would
              > > be greatly appreciated.[/color]
              >
              > Handle it as a string, like varchar columns.[/color]

              Thanx!

              I presume that a blob or anything similar would also be represented by a string.
              On the date question - Does mysql require you to use a specific format?
              Thanks for your help.

              Comment

              • Aggro

                #8
                Re: How to represent a date in C

                Franz wrote:
                [color=blue]
                > I presume that a blob or anything similar would also be represented by a string.[/color]

                Yes
                [color=blue]
                > On the date question - Does mysql require you to use a specific format?[/color]

                By default, yes I think so ( the format is yyyy-mm-dd ). But you can use
                date and time functions if you wish to use some other format:




                Comment

                • Aggro

                  #9
                  Re: How to represent a date in C

                  Franz wrote:
                  [color=blue]
                  > I presume that a blob or anything similar would also be represented by a string.[/color]

                  Yes
                  [color=blue]
                  > On the date question - Does mysql require you to use a specific format?[/color]

                  By default, yes I think so ( the format is yyyy-mm-dd ). But you can use
                  date and time functions if you wish to use some other format:




                  Comment

                  • Aggro

                    #10
                    Re: How to represent a date in C

                    Franz wrote:
                    [color=blue]
                    > I presume that a blob or anything similar would also be represented by a string.[/color]

                    Yes
                    [color=blue]
                    > On the date question - Does mysql require you to use a specific format?[/color]

                    By default, yes I think so ( the format is yyyy-mm-dd ). But you can use
                    date and time functions if you wish to use some other format:




                    Comment

                    Working...