Liking cljdoc? Tell your friends :D

jdk.sql.Date

A thin wrapper around a millisecond value that allows JDBC to identify this as an SQL DATE value. A milliseconds value represents the number of milliseconds that have passed since January 1, 1970 00:00:00.000 GMT.

To conform with the definition of SQL DATE, the millisecond values wrapped by a java.sql.Date instance must be 'normalized' by setting the hours, minutes, seconds, and milliseconds to zero in the particular time zone with which the instance is associated.

A thin wrapper around a millisecond value that allows
JDBC to identify this as an SQL DATE value.  A
milliseconds value represents the number of milliseconds that
have passed since January 1, 1970 00:00:00.000 GMT.

To conform with the definition of SQL DATE, the
millisecond values wrapped by a java.sql.Date instance
must be 'normalized' by setting the
hours, minutes, seconds, and milliseconds to zero in the particular
time zone with which the instance is associated.
raw docstring

*value-ofclj

(*value-of s)

Converts a string in JDBC date escape format to a Date value.

s - a String object representing a date in in the format "yyyy-[m]m-[d]d". The leading zero for mm and dd may also be omitted. - java.lang.String

returns: a java.sql.Date object representing the given date - java.sql.Date

throws: java.lang.IllegalArgumentException - if the date given is not in the JDBC date escape format (yyyy-[m]m-[d]d)

Converts a string in JDBC date escape format to
 a Date value.

s - a String object representing a date in in the format "yyyy-[m]m-[d]d". The leading zero for mm and dd may also be omitted. - `java.lang.String`

returns: a java.sql.Date object representing the
         given date - `java.sql.Date`

throws: java.lang.IllegalArgumentException - if the date given is not in the JDBC date escape format (yyyy-[m]m-[d]d)
raw docstring

->dateclj

(->date date)
(->date year month day)

Constructor.

Deprecated. instead use the constructor Date(long date)

year - the year minus 1900; must be 0 to 8099. (Note that 8099 is 9999 minus 1900.) - int month - 0 to 11 - int day - 1 to 31 - int

Constructor.

Deprecated. instead use the constructor Date(long date)

year - the year minus 1900; must be 0 to 8099. (Note that 8099 is 9999 minus 1900.) - `int`
month - 0 to 11 - `int`
day - 1 to 31 - `int`
raw docstring

get-hoursclj

(get-hours this)

Deprecated.

returns: the hour represented by this date. - int

throws: java.lang.IllegalArgumentException - if this method is invoked

Deprecated.

returns: the hour represented by this date. - `int`

throws: java.lang.IllegalArgumentException - if this method is invoked
raw docstring

get-minutesclj

(get-minutes this)

Deprecated.

returns: the number of minutes past the hour represented by this date. - int

throws: java.lang.IllegalArgumentException - if this method is invoked

Deprecated.

returns: the number of minutes past the hour represented by this date. - `int`

throws: java.lang.IllegalArgumentException - if this method is invoked
raw docstring

get-secondsclj

(get-seconds this)

Deprecated.

returns: the number of seconds past the minute represented by this date. - int

throws: java.lang.IllegalArgumentException - if this method is invoked

Deprecated.

returns: the number of seconds past the minute represented by this date. - `int`

throws: java.lang.IllegalArgumentException - if this method is invoked
raw docstring

set-hoursclj

(set-hours this i)

Deprecated.

i - the hour value. - int

throws: java.lang.IllegalArgumentException - if this method is invoked

Deprecated.

i - the hour value. - `int`

throws: java.lang.IllegalArgumentException - if this method is invoked
raw docstring

set-minutesclj

(set-minutes this i)

Deprecated.

i - the value of the minutes. - int

throws: java.lang.IllegalArgumentException - if this method is invoked

Deprecated.

i - the value of the minutes. - `int`

throws: java.lang.IllegalArgumentException - if this method is invoked
raw docstring

set-secondsclj

(set-seconds this i)

Deprecated.

i - the seconds value. - int

throws: java.lang.IllegalArgumentException - if this method is invoked

Deprecated.

i - the seconds value. - `int`

throws: java.lang.IllegalArgumentException - if this method is invoked
raw docstring

set-timeclj

(set-time this date)

Sets an existing Date object using the given milliseconds time value. If the given milliseconds value contains time information, the driver will set the time components to the time in the default time zone (the time zone of the Java virtual machine running the application) that corresponds to zero GMT.

date - milliseconds since January 1, 1970, 00:00:00 GMT not to exceed the milliseconds representation for the year 8099. A negative number indicates the number of milliseconds before January 1, 1970, 00:00:00 GMT. - long

Sets an existing Date object
 using the given milliseconds time value.
 If the given milliseconds value contains time information,
 the driver will set the time components to the
 time in the default time zone (the time zone of the Java virtual
 machine running the application) that corresponds to zero GMT.

date - milliseconds since January 1, 1970, 00:00:00 GMT not to exceed the milliseconds representation for the year 8099. A negative number indicates the number of milliseconds before January 1, 1970, 00:00:00 GMT. - `long`
raw docstring

to-instantclj

(to-instant this)

This method always throws an UnsupportedOperationException and should not be used because SQL Date values do not have a time 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 Date values do not have a time
 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
raw docstring

to-local-dateclj

(to-local-date this)

Converts this Date object to a LocalDate

The conversion creates a LocalDate that represents the same date value as this Date in local time zone

returns: a LocalDate object representing the same date value - java.time.LocalDate

Converts this Date object to a LocalDate

 The conversion creates a LocalDate that represents the same
 date value as this Date in local time zone

returns: a LocalDate object representing the same date value - `java.time.LocalDate`
raw docstring

to-stringclj

(to-string this)

Formats a date in the date escape format yyyy-mm-dd.

returns: a String in yyyy-mm-dd format - java.lang.String

Formats a date in the date escape format yyyy-mm-dd.

returns: a String in yyyy-mm-dd format - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close