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.
This commit is contained in:
Kang Seonghoon 2015-07-05 15:26:30 +09:00
parent 3220d0f15d
commit 01b3ed2ada
5 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
[package]
name = "chrono"
version = "0.2.14"
version = "0.2.15"
authors = ["Kang Seonghoon <public+rust@mearie.org>"]
description = "Date and time library for Rust"

View File

@ -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' >> $@

View File

@ -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).

View File

@ -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.