Eh2406
5fc6edd928
bump time to use winapi 0.3
2018-08-17 19:00:37 -04:00
Brandon W Maister
b49848d680
Merge pull request #269 from afgomez/patch-1
...
Update broken links to `time::Duration`
2018-08-14 11:04:31 -04:00
Alex Sayers
892bbf3f3a
Add NaiveDate::from_ymwd_opt, implement from_ymwd in terms of it
2018-08-13 11:29:02 +09:00
Alex Sayers
4ffd411654
Add NaiveDate::from_ymwd
...
This contructor allows you to make a NaiveDate by specifying eg. "the
2nd Friday of March 2017". It contains a couple of panics, but these
are consistent with the behaviour of the other NaiveDate constructors.
2018-08-13 11:29:02 +09:00
Mahmoud Al-Qudsi
855d5f2772
Add initial implementation of std::convert::From for DateTime offsets
...
Adds conversion to/from Utc, Local, and FixedOffset. Originally planned
to go through NaiveDateTime, but it seems that is not necessary?
2018-08-11 22:12:11 -05:00
Alejandro Fernández
4b2a287776
Update broken links to `time::Duration`
2018-08-06 20:41:02 +02:00
Brandon W Maister
8fceba82f4
Bump Chrono version to 0.4.5
2018-07-28 17:12:03 -04:00
Brandon W Maister
b975d7a2ff
Add another change to the changelog
2018-07-28 17:09:40 -04:00
Brandon W Maister
369ce72987
Merge pull request #252 from quodlibetor/negative-timestamps
...
Add doctests around negative timestamps
2018-07-28 17:07:04 -04:00
Brandon W Maister
55538b5b9c
Merge pull request #268 from quodlibetor/TimeZone-timestamp-millis
...
Add `timestamp_millis` and `timestamp_millis_opt`
2018-07-28 16:41:34 -04:00
Brandon W Maister
a58a833324
Add doctests for negative timestamps
2018-07-28 16:40:26 -04:00
Brandon W Maister
5481dec823
Don't warn on an unknown allowed clippy lint
2018-07-28 15:25:37 -04:00
Brandon W Maister
ffb27b8cc7
Add changelog entries for already-merged changes
2018-07-28 15:24:48 -04:00
Brandon W Maister
19955ac992
Add `timestamp_millis` and `timestamp_millis_opt`
...
Fixes #264
2018-07-28 15:18:32 -04:00
Brandon W Maister
512f21d481
Merge pull request #258 from novacrazy/extra-serde
...
Extra serde modules for various timestamp formats.
2018-07-28 14:45:42 -04:00
Brandon W Maister
ad543a75ef
Merge pull request #267 from davidtwco/playground-metadata
...
Enable all features on Rust Playground.
2018-07-28 14:39:44 -04:00
David Wood
b57e815da7
Enable all features on Rust Playground.
2018-07-21 19:24:24 +01:00
Brandon W Maister
7b612e9ae0
Merge pull request #261 from storyfeet/format-pointer
...
Tried to make it easier to find specifiers
2018-07-18 21:54:53 -04:00
storyfeet
611abbd7ae
trivially copy pass by ref
2018-07-18 21:38:37 -04:00
storyfeet
b9b09b8e11
Tried to make it easier to find specifiers
2018-07-18 21:38:37 -04:00
novacrazy
a88ee8f719
Fix doc
2018-07-18 04:45:11 -05:00
novacrazy
4a66b17bd0
Add docs/tests and fix math
2018-07-04 14:12:36 -05:00
novacrazy
5df91c3985
Add WIP millisecond serde implementation
2018-07-04 10:38:39 -05:00
Brandon W Maister
e165a93a6c
Merge pull request #254 from LuoZijun/patch-1
...
Add Hash trait on FixedOffset
2018-06-24 13:29:53 -04:00
寧靜
a99dee655e
Update fixed.rs
2018-06-24 05:45:24 +08:00
Brandon W Maister
237042365e
Update for 0.4.4
2018-06-23 17:32:44 -04:00
Brandon W Maister
7baafafc0c
Merge pull request #251 from emschwartz/master
...
Add nanoseconds without dots
2018-06-17 12:30:37 -04:00
Brandon W Maister
df4912a33f
Test formatting with more precise nanoseconds
...
There is some specific behavior around writing out truncated nanos that we want
to be sure to preserve.
2018-06-13 23:00:31 -04:00
Evan Schwartz
11cfb3696e
Move NanosecondXNoDot to internal enum
...
To avoid adding new variants to the public enum (see https://github.com/chronotope/chrono/pull/251#issuecomment-396692148 )
2018-06-12 14:53:49 -04:00
Evan Schwartz
937189ee52
Take exactly num digits specified for nanosecond fixed
...
Error if it's too long or short, and don't take any more digits
2018-06-12 10:51:38 -04:00
Evan Schwartz
8a2b09962a
Only parse up to max number of digits for nanoseconds w/o dots
2018-06-12 10:51:38 -04:00
Evan Schwartz
074e92fc63
Document millisecond format without the dot
2018-06-12 10:51:36 -04:00
Evan Schwartz
f9d3094d4e
Test nanosecond parsing without the dot
2018-06-12 10:51:07 -04:00
Evan Schwartz
1de3658433
Add nanoseconds without dots
2018-06-12 10:51:07 -04:00
Brandon W Maister
0ef8c5cc83
Bump Chrono Version to 0.4.3
2018-06-10 21:36:36 -04:00
Brandon W Maister
f1852a6d21
Update changelog with TZ Offset Permissive
2018-06-10 21:35:41 -04:00
Brandon W Maister
3c6e807672
Merge pull request #242 from quodlibetor/add-permissive-tz-parsing
...
Add %#z as "Permissive" timezone parsing
2018-06-10 20:38:09 -04:00
Brandon W Maister
c3207a5811
Use the `InternalFixed` struct for TimezoneOffsetPermissive
...
It is the backcompat scheme that we have. In the 5.x timeline we will add the
more-standard and significantly-more-pleasant-to-expand `#[doc(hidden)]
__DoNotMatchAgainstMe` trick.
2018-06-07 21:46:57 -04:00
Brandon W Maister
9991c2b0ed
Rust 1.13 does not support elided lifetimes in const.
2018-06-07 21:46:57 -04:00
Brandon W Maister
95f6a2be1c
Add %#z as "Permissive" timezone parsing
...
This allows you to parse a timezone that:
* Is either `Z` or an actual offset
* Contains no minutes, just the hour
Fixes #219
2018-06-07 21:46:57 -04:00
Brandon W Maister
9276929c58
Merge pull request #247 from HarkonenBade/nanosecond-ts
...
Nanosecond Timestamps
2018-05-24 13:19:39 -04:00
Thomas Bytheway
5d86c53679
Updated Changelog
2018-05-24 13:49:23 +01:00
Thomas Bytheway
90c75885d0
Rename ts_nano_seconds to ts_nanoseconds
2018-05-24 13:44:12 +01:00
Thomas Bytheway
cdb6170f02
Add serde functions for nanosecond timestamps
2018-05-18 11:05:03 +01:00
Thomas Bytheway
cc613976a4
Add functions to present DateTime in nanoseconds since epoch
2018-05-18 11:04:39 +01:00
Brandon W Maister
92e1e7d7aa
Merge pull request #241 from gitter-badger/gitter-badge-1
...
Add a Gitter chat badge to README.md
2018-04-30 14:33:39 -04:00
Brandon W Maister
66005be6a2
Fix position of gitter badge.
2018-04-19 23:28:09 -04:00
The Gitter Badger
c2753f1158
Add Gitter badge
2018-04-20 03:23:21 +00:00
Brandon W Maister
97dbfd02ab
Bump version for 0.4.2 release
2018-04-07 17:51:56 -04:00
Brandon W Maister
1c4fc66323
Update changelog
2018-04-03 22:36:08 -04:00