Liking cljdoc? Tell your friends :D

java-time.pre-java8


defsqldatecljmacro

(defsqldate type name ctor n-args doc)
source

instant->sql-timestampclj

(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-dateclj

(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-dateclj

(sql-date)
(sql-date G__4582)
(sql-date G__4583 G__4584)
(sql-date G__4585 G__4586 G__4587)

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-timeclj

(sql-time)
(sql-time G__4619)
(sql-time G__4620 G__4621)
(sql-time G__4622 G__4623 G__4624)

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-timestampclj

(sql-timestamp)
(sql-timestamp G__4589)
(sql-timestamp G__4590 G__4591)
(sql-timestamp G__4592 G__4593 G__4594)
(sql-timestamp G__4595 G__4596 G__4597 G__4598)
(sql-timestamp G__4599 G__4600 G__4601 G__4602 G__4603)
(sql-timestamp G__4604 G__4605 G__4606 G__4607 G__4608 G__4609)
(sql-timestamp G__4610 G__4611 G__4612 G__4613 G__4614 G__4615 G__4616)

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