not-{before,after}?
on unconverted values
java-time.api/=
for equality of times (with conversions){before,after}?
, not-{before,after}?
, j/=
, and aliases of those ops(j/< (j/day-of-week :thursday) :saturday :sunday)
(j/<= (j/day-of-week :thursday) :thursday (j/day-of-week :saturday) :sunday)
(j/= (j/day-of-week :thursday) :thursday (j/day-of-week :thursday) :thursday)
not-{before,after}?
when called with intervalsnot-before?
and not-after?
with one or more than two argumentsjava-time.api/+
aliases java-time.api/plus
java-time.api/-
aliases java-time.api/minus
java-time.api/neg?
aliases java-time.api/negative?
java-time.api/<
aliases java-time.api/before?
java-time.api/>
aliases java-time.api/after?
java-time.api/<=
aliases java-time.api/not-after?
java-time.api/>=
aliases java-time.api/not-before?
:redef
on protocol methods, they are never direct-linked: https://ask.clojure.org/index.php/10967/are-protocol-methods-guaranteed-to-not-be-directly-linked?show=10990#a10990*clock*
when only providing a zone id in constructorsDue 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