Skip to content

Commit

Permalink
Prep for 0.12.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Jun 6, 2016
1 parent 70c8d33 commit 0fb4eec
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
36 changes: 36 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
## Changes Between 0.11.0 and 0.12.0

### Joda Time 2.9.3

[Joda Time](http://www.joda.org/joda-time/) has been [upgraded to `2.9.3`](http://www.joda.org/joda-time/upgradeto293.html).

### java.jdbc coercions

`java.sql.Date` and `java.sql.Time` are now coerced automatically if you `require` `clj-time.jdbc` (previously only `java.sql.Timestamp` was coerced).

### Formatters

The `formatter` function now accepts keywords and formatter objects, as well as string formats, so you can easily select a standard format (with a keyword) or provide a specific formatter object.

### Clojure 1.8 by Default

The library now depends on Clojure `1.8.0` and is tested against `1.6.0`, `1.7.0`, and `1.9.0-master-SNAPSHOT`.

### Enhancements

* `first-day-of-the-month?` and `last-day-of-the-month?` -- aliases to improve consistency (so it's `the-month` everywhere).
* `min-date` and `max-date` -- to return the minimum or maximum of two or more dates.
* `nth-day-of-the-month` -- return the Nth day of the year/month, or date/time.
* `nth-day-of-the-month?` -- return true if a given date/time is on the Nth day of its month.
* `with-time-at-start-of-day` -- return the time at the start of the day, including timezone and DST support.

### Deprecations

* `today-at-midnight` -- deprecated in favor of `with-time-at-start-of-day`.

### Bug Fixes

[Issue 185](https://github.com/clj-time/clj-time/issues/185) is fixed by explicitly tying the `:rfc822` formatter to the US locale.

The examples in the README are now automatically tested (by midje-readme) so they are more likely to be valid.

## Changes Between 0.10.0 and 0.11.0

### Joda Time 2.8
Expand Down
11 changes: 6 additions & 5 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject clj-time/clj-time "0.12.0-SNAPSHOT"
(defproject clj-time/clj-time "0.12.0"
:description "A date and time library for Clojure, wrapping Joda Time."
:url "https://github.com/clj-time/clj-time"
:mailing-list {:name "clj-time mailing list"
Expand All @@ -10,13 +10,14 @@
:dependencies [[joda-time "2.9.3"]
[org.clojure/clojure "1.8.0"]]
:min-lein-version "2.0.0"
:profiles {:dev {:dependencies [[org.clojure/java.jdbc "0.4.2"]]
:profiles {:dev {:dependencies [[org.clojure/java.jdbc "0.6.0"]]
:plugins [[codox "0.8.10"]]}
:midje {:dependencies [[midje "1.8.2"]]
:plugins [[lein-midje "3.1.3"]
:midje {:dependencies [[midje "1.8.3"]]
:plugins [[lein-midje "3.2"]
[midje-readme "1.0.9"]]
:midje-readme {:require "[clj-time.core :as t] [clj-time.predicates :as pr] [clj-time.format :as f] [clj-time.coerce :as c]"}}
:1.6 {:dependencies [[org.clojure/clojure "1.6.0"]]}
:1.7 {:dependencies [[org.clojure/clojure "1.7.0"]]}
:master {:repositories [["snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"]]}}
:master {:repositories [["snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"]]
:dependencies [[org.clojure/clojure "1.9.0-master-SNAPSHOT"]]}}
:aliases {"test-all" ["with-profile" "dev,master,default,midje:dev,default,midje:dev,1.6,midje:dev,1.7,midje" "test"]})

0 comments on commit 0fb4eec

Please sign in to comment.