Skip to main content
Version: v4 (Stable)

DATETIME

DATETIME(year AS INTEGER, month AS INTEGER, day AS INTEGER[, hour AS INTEGER, minute AS INTEGER[, second AS INTEGER[, millisecond AS INTEGER[, bGMT AS BOOLEAN]]]]) AS TIME String

Returns the TIME value which corresponds to the parameters <year> (full year), <month> (1 to 12), <day> (1 to 31), <hour> (0 by default), <minute> (0 by default), <second> (0 by default), <millisecond> (0 by default). If the optional parameter <bGMT> is TRUE, the function returns the time in UTC format (GMT time), a localtime must be passed as parameters.