Liking cljdoc? Tell your friends :D

java-time.pre-java8


defsqldatemacro

(defsqldate type name ctor n-args doc)
source

instant->sql-timestamp

(instant->sql-timestamp instant-or-millis)

Creates a java.sql.Timestamp from the provided instant-or-millis - a millisecond numeric time value or something convertible to an Instant.

Please consider using the JSR-310 Java Time types instead of java.sql.Timestamp if your drivers support them.

java.sql.Timestamp is a version of a java.util.Date supposed to be used as a local date-time (no timezone) for the purposes of conversion from/to native JDBC driver TIMESTAMP types.

Creates a `java.sql.Timestamp` from the provided `instant-or-millis` - a
millisecond numeric time value or something convertible to an `Instant`.

Please consider using the JSR-310 Java Time types instead of
`java.sql.Timestamp` if your drivers support them.

`java.sql.Timestamp` is a version of a `java.util.Date` supposed to be used
as a local date-time (no timezone) for the purposes of conversion from/to native
JDBC driver TIMESTAMP types.
sourceraw docstring

java-date

(java-date)
(java-date a)
(java-date a b)

Creates a java.util.Date out of any combination of arguments valid for java-time/instant or the Instant itself.

A java.util.Date represents an instant in time. It's a direct analog of the java.time.Instant type introduced in the JSR-310. Please consider using the java.time.Instant (through java-time/instant) directly.

Creates a `java.util.Date` out of any combination of arguments valid for
`java-time/instant` or the Instant itself.

A `java.util.Date` represents an instant in time. It's a direct analog of the
`java.time.Instant` type introduced in the JSR-310. Please consider using the
`java.time.Instant` (through `java-time/instant`) directly.
sourceraw docstring

sql-date

(sql-date)
(sql-date G__4523)
(sql-date G__4524 G__4525)
(sql-date G__4526 G__4527 G__4528)

Creates a java.sql.Date out of any combination of arguments valid for java-time/local-date or the LocalDate itself.

Please consider using the JSR-310 Java Time types instead of java.sql.Date if your drivers support them.

Even though java.sql.Date extends a java.util.Date, it's supposed to be used as a local date (no time component or timezone) for the purposes of conversion from/to native JDBC driver DATE types.

Creates a `java.sql.Date` out of any combination of arguments valid for
`java-time/local-date` or the `LocalDate` itself.

Please consider using the JSR-310 Java Time types instead of `java.sql.Date`
if your drivers support them.

Even though `java.sql.Date` extends a `java.util.Date`, it's supposed to be
used as a local date (no time component or timezone) for the purposes of
conversion from/to native JDBC driver DATE types.
sourceraw docstring

sql-time

(sql-time)
(sql-time G__4560)
(sql-time G__4561 G__4562)
(sql-time G__4563 G__4564 G__4565)

Creates a java.sql.Time out of any combination of arguments valid for java-time/local-time (except the nanos constructor) or the LocalTime itself.

Please consider using the JSR-310 Java Time types instead of java.sql.Time if your drivers support them.

Even though java.sql.Time extends a java.util.Date, it's supposed to be used as a local time (no date component or timezone) for the purposes of conversion from/to native JDBC driver TIME types.

Creates a `java.sql.Time` out of any combination of arguments valid for
`java-time/local-time` (except the nanos constructor) or the `LocalTime`
itself.

Please consider using the JSR-310 Java Time types instead of `java.sql.Time`
if your drivers support them.

Even though `java.sql.Time` extends a `java.util.Date`, it's supposed to be
used as a local time (no date component or timezone) for the purposes of
conversion from/to native JDBC driver TIME types.
sourceraw docstring

sql-timestamp

(sql-timestamp)
(sql-timestamp G__4530)
(sql-timestamp G__4531 G__4532)
(sql-timestamp G__4533 G__4534 G__4535)
(sql-timestamp G__4536 G__4537 G__4538 G__4539)
(sql-timestamp G__4540 G__4541 G__4542 G__4543 G__4544)
(sql-timestamp G__4545 G__4546 G__4547 G__4548 G__4549 G__4550)
(sql-timestamp G__4551
               G__4552
               G__4553
               G__4554
               G__4555
               G__4556
               G__4557)

Creates a java.sql.Timestamp in the local timezone out of any combination of arguments valid for java-time/local-date-time or the LocalDateTime itself.

The sql-timestamp constructor function does not support Timestamp construction from an Instant or a long millis value. Please use instant->sql-timestamp for this purpose.

Please consider using the JSR-310 Java Time types instead of java.sql.Timestamp if your drivers support them.

java.sql.Timestamp is a version of a java.util.Date supposed to be used as a local date-time (no timezone) for the purposes of conversion from/to native JDBC driver TIMESTAMP types.

Creates a `java.sql.Timestamp` in the local timezone out of any combination
of arguments valid for `java-time/local-date-time` or the `LocalDateTime`
itself.

The `sql-timestamp` constructor function does not support `Timestamp`
construction from an `Instant` or a long millis value. Please use
`instant->sql-timestamp` for this purpose.

Please consider using the JSR-310 Java Time types instead of
`java.sql.Timestamp` if your drivers support them.

`java.sql.Timestamp` is a version of a `java.util.Date` supposed to be used
as a local date-time (no timezone) for the purposes of conversion from/to native
JDBC driver TIMESTAMP types.
sourceraw docstring

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

× close