Re: C UDR datetime routines
Posted in 2006
Art S. Kagel — — source: Usenet: comp.databases.informix
Bart Huls wrote: > Hi, > > Does anyone have an example how to convert informix datetime (mi_datetime) > structure to year/month/day etc... values.. > > Bart > > In the IIUG Software Repository there is a package, datelib_ak, I posted that contains the function idttomydt() which converts a datetime to a structure, My_Datetime which contains a date as yyyy*10000 + mm*100 + dd, the number of seconds since midnight, and number of microseconds since the last second. This is easy to parse for the details you need. I also have a later version of the package which I haven't released yet that contains a function to convert datetime to a struct tm. Art S. Kagel