Subject | Re: ISC_TIMESTAMP Issue |
---|---|
Author | Iman S. H. Suyoto |
Post date | 2008-06-29T23:49:32Z |
Hi Kurt,
--- In firebird-support@yahoogroups.com, Kurt Federspiel
<federonline@...> wrote:
mktime(&DateTime_Stamp);
here?
Like what Lester mentioned, there's no daylight saving/time zone
conversion done by isc_encode_timestamp() and isc_decode_timestamp().
--- In firebird-support@yahoogroups.com, Kurt Federspiel
<federonline@...> wrote:
>I'm curious. What if you add:
> A code snippet looks like this:
>
> SQLDA1->sqlvar[7].sqldata = (char *) &iscTimeStamp;
> SQLDA1->sqlvar[7].sqltype = SQL_TIMESTAMP;
> SQLDA1->sqlvar[7].sqllen = sizeof(ISC_TIMESTAMP);
>
>
> bRetVal = StartQuery(STAT1, SQLDA1, szStatement, ErrorMsg );
> if( bRetVal == true )
> {
> if( 0 == isc_dsql_fetch(STAT1, &STMT1, 1, SQLDA1) )
> {
> // COPY THE RESULTS...
> isc_decode_timestamp(&iscTimeStamp, &DateTime_Stamp);
mktime(&DateTime_Stamp);
here?
Like what Lester mentioned, there's no daylight saving/time zone
conversion done by isc_encode_timestamp() and isc_decode_timestamp().