itTime

Type: TInputType | Unit: EgStrParser

Accepts a time of day. All spaces are removed before parsing; an AM/PM suffix is recognized with or without a space before it.

Accepted formats

Format Example
hh:mm 09:30
hh:mm:ss 09:30:00
hh:mm:ss.f to hh:mm:ss.ffffff 09:30:00.5 -> 500 ms

: is always accepted. The runtime TimeSeparator is accepted too, unless it is ., which would clash with the fractional seconds; then only : is valid.

Fractional seconds

1 to 6 digits after the .. The value is normalized to milliseconds (0-999): fewer than 3 digits are padded with zeros on the right (.5 -> 500 ms); more than 3 digits are truncated (.1234 -> 123 ms).

Only digits are accepted after the dot. A dot with no digits, more than 6 digits or any other character (a sign, a letter, $) gives ERR_INVALID_FORMAT. Earlier versions accepted .-5 and .$A and produced wrong milliseconds (changed in 2.1.0).

Zero milliseconds (.000) give a plain hh:mm:ss literal.

AM/PM combined with fractional seconds is not supported and gives ERR_INVALID_FORMAT.

AM/PM

Accepted on locales whose TimeAMString and TimePMString are not empty (12-hour locales). Both 9:30AM and 9:30 AM are recognized. The SQL literal is always 24-hour.

Input: 2:30 PM   ->   Values[0]:               14:30:00
                      SQLValues[0] (ElevateDB): TIME '14:30:00'

Values

The 24-hour time in hh:mm:ss form, with .fff added when the milliseconds are not zero.

09:30       ->   09:30:00
09:30:15.5  ->   09:30:15.500

SQLValues

The SQL literal depends on the dialect (see SQL dialects):

09:30:15.500 ->
  sqlElevateDB, sqlMySQL,
  sqlPostgreSQL:                TIME '09:30:15.500'
  sqlFirebird:                  TIME '09:30:15.5000'  (ms x 10)
  sqlDBISAM, sqlMSSQLServer,
  sqlSQLite:                    '09:30:15.500'
  sqlOracle:                    TO_TIMESTAMP('09:30:15.500','HH24:MI:SS.FF3')
  sqlAccess:                    #09:30:15#            (ms dropped)
  sqlBDEParadox:                "09:30:15"            (ms dropped)

Range

Input: 08:00~17:00
  ->  otRange
  ->  BETWEEN TIME '08:00:00' AND TIME '17:00:00'  (sqlElevateDB)

The left time must not be later than the right time; otherwise ERR_INVALID_RANGE is returned.

See Also

(C) 2026 Easygate, Lda