704 Commits

Author SHA1 Message Date
Nikhil Benesch
1b895b4719
Restore support for x86_64-fortanix-unknown-sgx (#485) 2020-09-26 11:02:39 -04:00
Nikhil Benesch
1402e8dd5e
Update duration docs for oldtime feature (#484)
The main crate docs made some claims about the Duration type that became
incorrect with the new oldtime feature (#478).

Per @jhpratt.
2020-09-26 10:57:33 -04:00
Brandon W Maister
70432bc5b6
Merge pull request #483 and release 0.4.17 2020-09-25 21:17:51 -04:00
Brandon W Maister
a9dd78418f Release v0.4.17 v0.4.17 2020-09-25 21:08:21 -04:00
Brandon W Maister
1df92223cf The wasm-bindgen code refers to oldtime::Duration and is failing
https://github.com/chronotope/chrono/pull/286#issuecomment-699146233
2020-09-25 17:44:00 -04:00
Brandon W Maister
9085f95452
Merge pull request #481 from quodlibetor/rel-0.4.16
Release 0.4.16
2020-09-25 15:24:34 -04:00
Brandon W Maister
136b4690ec Release 0.4.16 v0.4.16 2020-09-25 15:19:33 -04:00
Nikhil Benesch
5115c6f5f9
Don't require time crate for clock feature (#478)
Absorb just enough of the time crate that it is no longer required for
the clock feature. v0.1 of the time crate is long deprecated, and v0.2 of
the crate is a complete rewrite.

Vendoring v0.1 allows chrono to control its own destiny. It also means
that downstream users that have upgraded to the time v0.2 ecosystem do
not wind up with both time v0.1 and v0.2 in the dependency tree.

Even with this patch, the dependency on the old time crate remains by
default for backwards compatibility. Specifically, the
`chrono::Duration` type is a re-export of the `time::Duration` type when
the `oldtime` feature is enabled, as it is by default. The intent is
that the `oldtime` feature will be removed when chrono v0.5 is released.

Supersedes #286.
Fixes #400.
2020-09-25 15:14:58 -04:00
Alexander Andreev
a314c61944
Spell checking in datetime.rs (#480) 2020-09-24 11:01:09 -04:00
Aleksandr Bashurov
f4c42b4f14
Skip IANA TZ names when parsing %Z specifier (#473) 2020-08-21 11:56:10 -04:00
Brandon W Maister
709e10ed26
Merge pull request #472 from quodlibetor/rel-0.4.15
Release 0.4.15
2020-08-14 17:04:32 -04:00
Brandon W Maister
7e0c0de619 Release 0.4.15 v0.4.15 2020-08-14 17:00:31 -04:00
Brandon W Maister
af1c2c1ff8
Merge pull request #470 from quodlibetor/run-compile-check-on-feature-combinations
Run cargo check on more feature combinations
2020-08-14 16:56:50 -04:00
Brandon W Maister
65e6dbd110 Get rid of unnecessary Vec in default path of format_inner
Also slightly refactor to make the locales feature's impact easier to
visualize.
2020-08-14 16:32:37 -04:00
Brandon W Maister
cb79089295 Test workflow changes when workflows change 2020-08-14 14:55:40 -04:00
Brandon W Maister
58819de920 Run cargo check on more feature combinations 2020-08-14 14:55:40 -04:00
Brandon W Maister
47fa56c0c0
Document that 0.4.14 is yanked (#469)
Gotta improve some tests
2020-08-07 12:10:55 -04:00
Brandon W Maister
c1c2f7b066
Merge pull request #467 from quodlibetor/rel-0.4.14
Release 0.4.14
2020-08-07 11:46:52 -04:00
Brandon W Maister
db5b217326 Release 0.4.14 v0.4.14 2020-08-07 10:59:12 -04:00
Brandon W Maister
6426498d07 Always test release branches 2020-08-07 10:59:12 -04:00
Jason
c364de3f55
docs: fix link to cargo docs (#464) 2020-08-05 10:15:05 -04:00
Brandon W Maister
27617470a4
Merge pull request #465 from ShadoySV/main
Fix Local.from_local_datetime method for wasm
2020-08-05 10:14:34 -04:00
ShadoySV
31e3e1602e Fix for test 2020-08-05 13:31:25 +03:00
ShadoySV
93e6a611d6 Add to authors and changelog 2020-08-05 13:11:44 +03:00
ShadoySV
dfa6935b82 Test fix Local::from_local_datetime for wasm 2020-08-05 13:01:25 +03:00
ShadoySV
98201e5589 Fix Local::from_local_datetime for wasm 2020-08-05 12:11:58 +03:00
Cecile Tonglet
8d6d83f7b8
Locales and format_localized (#453) 2020-07-31 10:05:40 -04:00
DavidKorczynski
370a20cb71
Added a fuzzer as integration to OSS-Fuzz. (#463)
* Added a fuzzer.

* Added a README for the fuzzer set up.
2020-07-27 10:07:10 -04:00
Brandon W Maister
8d66a68e47
Merge pull request #461 from chronotope/pr-353
Add a public Month enum
2020-07-27 10:05:49 -04:00
Brandon W Maister
0579d2af08
Document the features available to chrono users (#460) 2020-07-24 20:28:18 -04:00
Brandon W Maister
135e86ecd0 Make compatible with no_std 2020-07-24 14:43:12 -04:00
hhamana
143c802822 include in prelude 2020-07-24 14:43:12 -04:00
hhamana
cf973ccde3 fix doctest 2020-07-24 14:43:12 -04:00
hhamana
38810a33bf Adds a public Month enum.
Implementation for a Month enum, allowing -ser|de-rialization.
The implementation mostly mirrors the Weekday enum.
It only adds the enum with minimal integration so as to
not cause any backwards compatibility issue.
A deeper integration should be up to discussion.
Suggested in Issue #202
2020-07-24 14:43:12 -04:00
Brandon W Maister
53e63c3709
Merge pull request #457 from robyoung/pr/209
Add days and weeks iterators for `NaiveDate`
2020-07-24 13:32:18 -04:00
Rob Young
bfddc1e5fa Update CHANGELOG for day and week iterators 2020-07-24 13:11:13 -04:00
Rob Young
41345f10a1 Add weeks iterator for NaiveDate 2020-07-24 13:11:13 -04:00
gnzlbg
355052ba4a Add a days iterator for NaiveDay 2020-07-24 13:11:13 -04:00
Rob Young
6b600e83e8
Allow manual-non-exhaustive (#458)
It is needed as the non_exhaustive attribute is not available on 1.13.0.

This should fix the broken linting.
2020-07-24 12:21:12 -04:00
Brandon W Maister
130253ef2b
Support testing on both main and master (#454) 2020-07-11 13:56:02 -04:00
Rob Young
aaee912228
Add MIN and MAX DateTime, Time and NaiveDateTime (#452)
Resolves #386
2020-07-10 17:32:19 -04:00
Brandon W Maister
a905c556d8
Add unreleased section to changelog (#448) 2020-07-06 08:53:58 -04:00
Brandon W Maister
2b5437ded0
Merge pull request #447 from quodlibetor/rel-v0.4.13
Release v0.4.13
v0.4.13
2020-07-05 18:58:12 -04:00
Brandon W Maister
13c2f0bfc2 Pin version of shellcheck
0.4.0 caused https://github.com/ludeeus/action-shellcheck/issues/21
2020-07-05 18:56:17 -04:00
Brandon W Maister
cc0e795b59 Release v0.4.13 2020-07-05 18:50:00 -04:00
Brandon W Maister
6be7be37fc
Merge pull request #446 from schrieveslaach/feature/js-sys-date-improvements
Improve From<js_sys::Date> Variants for DateTime<Utc>
2020-07-05 18:34:27 -04:00
Brandon W Maister
073d86a3b1 Simplify math, add a js_sys test for correctness 2020-07-05 16:50:58 -04:00
Brandon W Maister
b6d7bac99a Fix wasm testing
wasm-bindgen-test and wasm-bindgen need to be different versions (0.3 and 0.2,
respectively), otherwise no tests are found([1], [2]);

This also fixes the test to and ci runner to just test in the current env/tz,
thereby requiring that js_sys returns the same timezone as the host system
thinks it is, but not otherwise trying to set the TZ.

[1]: https://users.rust-lang.org/t/wasm-bindgen-test-and-no-tests-to-run/43444
[2]: https://github.com/rustwasm/wasm-bindgen/pull/2123
2020-07-05 16:50:58 -04:00
Marc Schreiber
545fd9f863 Improve From<js_sys::Date> Variants for DateTime<Utc> 2020-07-05 16:50:57 -04:00
Rob Young
4348cd13c7
Add rounding and truncating by Duration (#445)
Resolves #280
2020-07-05 14:06:11 -04:00