List:MySQL++« Previous MessageNext Message »
From:Thomas Werth Date:December 2 2004 1:35pm
Subject:convert Mysql Timestamp or date into tm, or time_t
View as plain text  
Hi all,

i've got some problems to convert a date or timestamp from mysql db into 

tm or time_t .
What is the proper way to read this fields into std c++ types ?
Actual i skip date's and use inefficient string parsing for timestamp...
Converting timestamp to long -> time_t then convert this into tm , 
doesn't work proper , due timestamp stores no real long value, instead 
it is already a human readable date...

Any example code is welcome ;)
Thread
convert Mysql Timestamp or date into tm, or time_tThomas Werth2 Dec
  • Re: convert Mysql Timestamp or date into tm, or time_tChris Frey2 Dec
    • Re: convert Mysql Timestamp or date into tm, or time_tSteffen Schumacher2 Dec
      • Re: convert Mysql Timestamp or date into tm, or time_tChris Frey2 Dec
    • Re: convert Mysql Timestamp or date into tm, or time_tThomas Werth3 Dec
      • Re: convert Mysql Timestamp or date into tm, or time_tChris Frey3 Dec