SQL adaptation guide For Genero db 3.6x, 3.8x / Data dictionary |
Informix® has the DATETIME data type to store year to fraction information.
Genero db 3.61has the following equivalents for Informix DATETIME:
Genero db 3.80 supports DATETIME and INTERVAL types likes Informix:
String representing date time information: Informix is able to convert quoted strings to DATETIME data, if the string formatting matches the formatting set by environment parameters (GL_DATETIME). Genero db can also convert quoted strings to DATE / TIME / TIMESTAMP; by default, date/time formats follow the ISO standard (2005-01-30).
Date arithmetic:
With Genero db 3.80:
DATETIME and INTERVAL types can be used as with Informix, since these types are supported as native server types.
With Genero db 3.61:
Informix DATETIME data with a precision from HOUR TO SECOND is stored in a Genero db TIME column. DATETIME data with any other precision is stored in Genero db TIMESTAMP columns. The database interface makes the conversion automatically. Missing date or time parts default to 1900-01-01 00:00:00. For example, when using a DATETIME HOUR TO MINUTE with the value of "11:45", the Genero db DATETIME value will be "1900-01-01 11:45:00".