Subject | Re: [ib-support] Timestamp and CURRENT_TIMESTAMP resolution |
---|---|
Author | Andrew Guts |
Post date | 2002-06-18T13:09:27Z |
Arno Brinkman wrote:
>Maybe someone can take a look on the source and could explain why :Ok, clear :-)
>I'm not so familar with C but i think the "isc_encode_sql_time" routine
>explains it.
>It seems that the time-structure only can hold 0..59 officialy ?
>
>
>times = (struct tm*) times_arg;
>*isc_time = ((times->tm_hour * 60 + times->tm_min) * 60 +
> times->tm_sec) * ISC_TIME_SECONDS_PRECISION;
>}
>
>----------------I really appreciate your irony :-)
>struct tm {
> int tm_sec; /* seconds after the minute - [0,59] */
> int tm_min; /* minutes after the hour - [0,59] */
> int tm_hour; /* hours since midnight - [0,23] */
> int tm_mday; /* day of the month - [1,31] */
> int tm_mon; /* months since January - [0,11] */
> int tm_year; /* years since 1900 */
> int tm_wday; /* days since Sunday - [0,6] */
> int tm_yday; /* days since January 1 - [0,365] */
> int tm_isdst; /* daylight savings time flag */
> };
>#define _TM_DEFINED
>----------------
>