The ts_get_stamp_fields() procedure
The ts_get_stamp_fields() procedure takes a pointer to an mi_datetime structure and returns the parameters with the year, month, day, hour, minute, second, and microsecond.
Syntax
void
ts_get_stamp_fields (MI_CONNECTION *conn,
mi_datetime *dt,
mi_integer *year,
mi_integer *month,
mi_integer *day,
mi_integer *hour,
mi_integer *minute,
mi_integer *second,
mi_integer *ms)
- conn
- A valid connection.
- dt
- The time stamp to convert.
- year
- Pointer to year integer that the procedure sets. Can be
NULL
. - month
- Pointer to month integer that the procedure sets. Can be
NULL
. - day
- Pointer to day integer that the procedure sets. Can be
NULL
. - hour
- Pointer to hour integer that the procedure sets. Can be
NULL
. - minute
- Pointer to minute integer that the procedure sets. Can be
NULL
. - second
- Pointer to second integer that the procedure sets. Can be
NULL
. - ms
- Pointer to microsecond integer that the procedure sets. Can be
NULL
.
Returns
On return, the non-null year, month, day, hour, minute, second, and microsecond are set to the time that corresponds to the time indicated by the dt argument.