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__4492)
(sql-date G__4493 G__4494)
(sql-date G__4495 G__4496 G__4497)

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__4529)
(sql-time G__4530 G__4531)
(sql-time G__4532 G__4533 G__4534)

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__4499)
(sql-timestamp G__4500 G__4501)
(sql-timestamp G__4502 G__4503 G__4504)
(sql-timestamp G__4505 G__4506 G__4507 G__4508)
(sql-timestamp G__4509 G__4510 G__4511 G__4512 G__4513)
(sql-timestamp G__4514 G__4515 G__4516 G__4517 G__4518 G__4519)
(sql-timestamp G__4520 G__4521 G__4522 G__4523 G__4524 G__4525 G__4526)

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