From 01b3ed2ada2b440e51f3c0eab38b995d865cb0ff Mon Sep 17 00:00:00 2001 From: Kang Seonghoon Date: Sun, 5 Jul 2015 15:26:30 +0900 Subject: [PATCH] 0.2.15: more formatting specifiers and documentation fixes. - Added padding modifiers `%_?`, `%-?` and `%0?`. - Added new specifiers `%:z` and `%.f`. - When `%s` specifier is used with a time zone, the time zone offset was ignored. This has been fixed. - Several documentation fixes including the misleading presence of colons in the `%z` specifier. `%:z` was introduced partly due to this. --- CHANGELOG.md | 2 +- Cargo.toml | 2 +- Makefile | 4 ++-- README.md | 3 ++- src/lib.rs | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdfa1f4ad7..fe893cfc63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ Chrono obeys the principle of [Semantic Versioning](http://semver.org/). There were/are numerous minor versions before 1.0 due to the language changes. Versions with only mechnical changes will be omitted from the following list. -## 0.2.15 (in development) +## 0.2.15 (2015-07-05) ### Added diff --git a/Cargo.toml b/Cargo.toml index c15922339e..b52acaa596 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chrono" -version = "0.2.14" +version = "0.2.15" authors = ["Kang Seonghoon "] description = "Date and time library for Rust" diff --git a/Makefile b/Makefile index 901e3d7814..9f58b80746 100644 --- a/Makefile +++ b/Makefile @@ -21,11 +21,11 @@ README.md: src/lib.rs echo >> $@ echo '[travis-image]: https://travis-ci.org/lifthrasiir/rust-chrono.png' >> $@ echo '[travis]: https://travis-ci.org/lifthrasiir/rust-chrono' >> $@ - awk '/^# Chrono /,/^## /' $< | tail -n +2 | head -n -2 >> $@ + awk '/^# Chrono /,/^## /' $< | tail -n +2 | sed '$$d' | sed '$$d' >> $@ echo >> $@ echo '[Complete Documentation][doc]' >> $@ echo >> $@ echo '[doc]: https://lifthrasiir.github.io/rust-chrono/' >> $@ echo >> $@ - awk '/^## /,/^\*\/$$/' $< | grep -v '^# ' | head -n -2 >> $@ + awk '/^## /,/^\*\/$$/' $< | grep -v '^# ' | sed '$$d' >> $@ diff --git a/README.md b/README.md index efa39afd6a..52832051a3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[Chrono][doc] 0.2.14 +[Chrono][doc] 0.2.15 ==================== [![Chrono on Travis CI][travis-image]][travis] @@ -260,3 +260,4 @@ For example, "a month later" of 2014-01-30 is not well-defined and consequently `UTC.ymd(2014, 1, 30).with_month(2)` returns `None`. Advanced time zone handling is not yet supported (but is planned in 0.3). + diff --git a/src/lib.rs b/src/lib.rs index 93d6872e3b..a203ac1266 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ /*! -# Chrono 0.2.14 +# Chrono 0.2.15 Date and time handling for Rust. (also known as `rust-chrono`) It aims to be a feature-complete superset of the [time](https://github.com/rust-lang/time) library.