Due to #91, the main java-time
namespace has been deprecated. A new namespace java-time.api
has been created
Note that this change is entirely optional---java-time
and java-time.api
will continue to be in sync and may coexist.
See the docstring for java-time
for more details.
Released 2022-11-24.
java-time
fnsjava-time
ns by adding :arglists
to all varsjava-time.util/get-static-fields-of-type
java-time.potemkin.namespaces
zone-id?
predicateset-clock!
- sets the mocked clock value to the supplied instantwhen-joda-time-loaded
- macro which runs code when Joda-Time is on the classpathinstant->sql-timestamp
- produce a java.sql.Timestamp
from an Instant-like objectas
support for two-field Time entities #21, courtesy Larry Jonesclock?
predicatemock-clock
- returns a mocked instance of java.time.Clock
.to-sql-date
converts anything convertible to LocalDate
into a java.sql.Date
.
Previously to-sql-date
returned a java.util.Date
(bug).to-sql-timestamp
stopped accepting an instant and starting accepting local date time. I
mistakenly assumed that java.sql.Timestamp/from(Instant)
was deprecated.Please see a new section within README - Legacy Date-Time Types
java-date
, sql-date
, sql-timestamp
, sql-time
- functions which
produce the java.util.*
date-time objects.java.sql.Date
-> java.time.LocalDate
java.sql.Timestamp
-> java.time.LocalDateTime
java.sql.Time
-> java.time.LocalTime
to-java-date
/to-sql-date
/to-sql-timestamp
to-millis-from-epoch
, see
Eastwood
docs for the explanation.Ordered
implementation for java.time.Instant
zoned-date-time
doesn't accept the zone id as the last argumentoffset-date-time/offset-time
doesn't accept offset id as the last argumentwith-offset
/with-offset-same-instant
for offset manipulationwith-zone
/with-zone-same-instant
for zone manipulationCan you improve this documentation? These fine people already did:
Ambrose Bonnaire-Sergeant & Vadim PlatonovEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close