DateTime field with C++
Posted by:
Sylar rei
Date: June 19, 2008 08:29PM
HI Dear All;
i had a question with mysql in c++ code
there a field in my table that's type is datetime
now in my code
i connect to the database and access that table,
i wanna save time format in that's field,
but what kind of type i need to use?
int ? double? or .....
i get time use this code:
time_t ntime;
struct tm *today;
char timestamp[100];
time(&ntime);
today=localtime(&ntime);
so get : 20080620102831
can anybody help me?
thanksQ
mailto:
carloserei@gmail.com
or
owen@tentel.com.tw
Subject
Views
Written By
Posted
DateTime field with C++
15257
June 19, 2008 08:29PM
7783
July 10, 2008 01:20PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.