Time Literals
The time literal is always of type
Time
.
TimeLiteral:
TimeDeclarator [n o w]
TimeDeclarator [TimeDesignator]
TimeDeclarator: one of
t T
TimeDesignator:
FullTimePattern
LongTimePattern
MediumTimePattern
ShortTimePattern
FullTimePattern:
Defined by the pattern "h:mm:ss a z"
LongTimePattern:
Defined by the pattern "h:mm:ss a z"
MediumTimePattern:
Defined by the pattern "h:mm:ss a"
ShortTimePattern:
Defined by the pattern "h:mm a"
If the string now is used, then the literal corresponds to the current time in the server's default time zone when the literal is first evaluated. See the documentation of the java.text.DateFormat class for descriptions of the available time patterns.
Example Time Literals:
T[5:59 PM]
T[12:23:59 AM]
T[12:23:59 AM CST]
T[now]
Each time literal is a reference to an instance of class java.sql.Time.