A thin wrapper around the java.util.Date class that allows the JDBC
API to identify this as an SQL TIME value. The Time
class adds formatting and
parsing operations to support the JDBC escape syntax for time
values.
The date components should be set to the zero epoch
value of January 1, 1970 and should not be accessed.
A thin wrapper around the java.util.Date class that allows the JDBC API to identify this as an SQL TIME value. The Time class adds formatting and parsing operations to support the JDBC escape syntax for time values. The date components should be set to the `zero epoch` value of January 1, 1970 and should not be accessed.
(*value-of s)
Converts a string in JDBC time escape format to a Time value.
s - time in format hh:mm:ss
- java.lang.String
returns: a corresponding Time object - java.sql.Time
Converts a string in JDBC time escape format to a Time value. s - time in format `hh:mm:ss` - `java.lang.String` returns: a corresponding Time object - `java.sql.Time`
(->time time)
(->time hour minute second)
Constructor.
Constructs a Time object using a milliseconds time value.
time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT - long
Constructor. Constructs a Time object using a milliseconds time value. time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT - `long`
(get-date this)
Deprecated.
returns: the day of the month represented by this date. - java.lang. int
throws: java.lang.IllegalArgumentException - if this method is invoked
Deprecated. returns: the day of the month represented by this date. - `java.lang. int` throws: java.lang.IllegalArgumentException - if this method is invoked
(get-day this)
Deprecated.
returns: the day of the week represented by this date. - java.lang. int
throws: java.lang.IllegalArgumentException - if this method is invoked
Deprecated. returns: the day of the week represented by this date. - `java.lang. int` throws: java.lang.IllegalArgumentException - if this method is invoked
(get-month this)
Deprecated.
returns: the month represented by this date. - java.lang. int
throws: java.lang.IllegalArgumentException - if this method is invoked
Deprecated. returns: the month represented by this date. - `java.lang. int` throws: java.lang.IllegalArgumentException - if this method is invoked
(get-year this)
Deprecated.
returns: the year represented by this date, minus 1900. - java.lang. int
throws: java.lang.IllegalArgumentException - if this method is invoked
Deprecated. returns: the year represented by this date, minus 1900. - `java.lang. int` throws: java.lang.IllegalArgumentException - if this method is invoked
(set-date this i)
Deprecated.
i - the day of the month value between 1-31. - int
returns: java.lang. void
throws: java.lang.IllegalArgumentException - if this method is invoked
Deprecated. i - the day of the month value between 1-31. - `int` returns: `java.lang. void` throws: java.lang.IllegalArgumentException - if this method is invoked
(set-month this i)
Deprecated.
i - the month value between 0-11. - int
returns: java.lang. void
throws: java.lang.IllegalArgumentException - if this method is invoked
Deprecated. i - the month value between 0-11. - `int` returns: `java.lang. void` throws: java.lang.IllegalArgumentException - if this method is invoked
(set-time this time)
Sets a Time object using a milliseconds time value.
time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT - long
Sets a Time object using a milliseconds time value. time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT - `long`
(set-year this i)
Deprecated.
i - the year value. - int
returns: java.lang. void
throws: java.lang.IllegalArgumentException - if this method is invoked
Deprecated. i - the year value. - `int` returns: `java.lang. void` throws: java.lang.IllegalArgumentException - if this method is invoked
(to-instant this)
This method always throws an UnsupportedOperationException and should not be used because SQL Time values do not have a date component.
returns: an instant representing the same point on the time-line as
this Date object - java.time.Instant
throws: java.lang.UnsupportedOperationException - if this method is invoked
This method always throws an UnsupportedOperationException and should not be used because SQL Time values do not have a date component. returns: an instant representing the same point on the time-line as this Date object - `java.time.Instant` throws: java.lang.UnsupportedOperationException - if this method is invoked
(to-local-time this)
Converts this Time object to a LocalTime.
The conversion creates a LocalTime that represents the same hour, minute, and second time value as this Time.
returns: a LocalTime object representing the same time value - java.time.LocalTime
Converts this Time object to a LocalTime. The conversion creates a LocalTime that represents the same hour, minute, and second time value as this Time. returns: a LocalTime object representing the same time value - `java.time.LocalTime`
(to-string this)
Formats a time in JDBC time escape format.
returns: a String in hh:mm:ss format - java.lang.String
Formats a time in JDBC time escape format. returns: a String in hh:mm:ss format - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close