749 Commits

Author SHA1 Message Date
Milo
0f037702be
Update CHANGELOG.md 2021-10-25 17:47:52 +01:00
retrhelo
f4302b5b52 add DateTime::from_local() 2021-07-01 14:47:41 +08:00
Brandon W Maister
3467172c31
Merge pull request #506 from DiD92/add-default-impl
Add Default implementation for naive date types
2021-01-22 12:13:10 -05:00
Brandon W Maister
19ec092d3a
Document Duration's Display format (#517) 2021-01-22 12:12:23 -05:00
Rob Young
2b53360471
Allow manual_range_contains clippy lint (#525)
Range::contains was only stabilized in 1.35 and Chrono supports rustc
back to 1.13.
2021-01-22 12:10:56 -05:00
Dídac Sementé Fernández
a1cbbaab61 * Modified documentation examples
* Fixed typo in NaiveTime docs for Default
2020-12-31 15:32:02 +01:00
Dídac Sementé Fernández
c601041534 * Added missing config flag 2020-12-27 14:08:39 +01:00
Dídac Sementé Fernández
9bf16699b0 * Added Default implementations for Utc, Local and FixedOffset timezones 2020-12-27 14:03:07 +01:00
Dídac Sementé Fernández
3f895ec06b * Adjusted doctest for unstable-locales 2020-12-27 13:14:16 +01:00
Dídac Sementé Fernández
a2b6d94e42 * Fixed tests 2020-12-27 12:07:55 +01:00
Rob Young
b0f32832a7
Add documentation for DateTime FromStr impl (#516)
Resolves #505
2020-12-22 11:04:17 -05:00
Brandon W Maister
f1021f635b
Merge pull request #511 from ObsidianMinor/fix/now-milliseconds-in-conversion
Simplify conversion between JS Date and DateTime<Utc>
2020-12-21 15:03:41 -05:00
Sydney Acksman
741b30adab Simplify JS Date <-> DateTime<Utc> conversion 2020-12-21 13:18:06 -06:00
Brandon W Maister
e3c42c4f7a
Merge pull request #509 from robyoung/feature/duration-round-for-naive-datetime
Feature/duration round for naive datetime
2020-12-20 18:19:40 -05:00
Brandon W Maister
46dee626e8
Merge pull request #510 from robyoung/backtick-doctest-examples
Use backticks for documentation examples
2020-12-20 18:17:36 -05:00
Rob Young
c9778f7583 Use backticks for documentation examples
The rustdoc documentation and the book only show examples as escaped
with backticks.
2020-11-30 21:54:46 +00:00
Rob Young
312b7b3704 Implement DurationRound for NaiveDateTime
This is off the back of [this
comment](https://github.com/chronotope/chrono/pull/445#issuecomment-717323407).
2020-11-30 21:05:05 +00:00
Rob Young
80b285983f Fix chrono::DurationRound is not TZ aware
Fixes #495
2020-11-30 21:03:11 +00:00
Dídac Sementé Fernández
43e5f2a671 * Removed non naive Default implmentations 2020-11-24 23:41:59 +01:00
Dídac Sementé Fernández
c0643e193f * Added Default implementation for NaiveDateTime, NaiveDate and NaiveTime
* Added Default implmentation for DateTime and Date
2020-11-24 22:57:20 +01:00
Brandon W Maister
2e0936bc3d
Merge pull request #504 from quodlibetor/date-prompt-naive
Push more prominently for folks to use NaiveDate over Date
2020-11-20 13:49:52 -05:00
Brandon W Maister
8c7e192a62 handle clippy::single-char-add-str 2020-11-20 12:38:35 -05:00
Brandon W Maister
6e31ebc0aa Push more prominently for folks to use NaiveDate over Date 2020-11-20 12:38:35 -05:00
Brandon W Maister
c28a2ec362
Merge pull request #304 from jaredvann/microseconds-ts
Microseconds Timestamps, clone of #247
2020-11-13 15:03:07 -05:00
Jared Vann
b3ce83550b Add serde functions for microsecond timestamps 2020-11-13 13:47:34 -05:00
Jared Vann
b832ba336a Add functions to present DateTime in microseconds since epoch 2020-11-13 12:38:35 -05:00
Brandon W Maister
7373bc7091
Merge pull request #500 from ThomasdenH/main
Add some documentation and examples for formatting
2020-11-13 12:36:23 -05:00
Brandon W Maister
ad86afe7a8
Merge pull request #501 from chronotope/check-docs
Check that documentation builds without warnings on nightly
2020-11-13 12:35:06 -05:00
Brandon W Maister
d8a91d14db Convert some more links to the auto-link format 2020-11-13 12:25:24 -05:00
Brandon W Maister
88c8022cf1 Silence another clippy lint that relies on a new feature 2020-11-13 12:12:28 -05:00
Brandon W Maister
fafea35b9e Check that documentation builds without warnings on nightly
This should ensure that all intra-doc links are correct.
2020-11-13 12:12:28 -05:00
Thomas
78305947ff Add to changelog 2020-11-10 12:23:05 +01:00
Thomas
f684ebfbee Add some documentation and examples for formatting 2020-11-10 12:20:06 +01:00
Brandon W Maister
391142a64f
Merge pull request #493 from chronotope/rel-0.4.19
Release 0.4.19
2020-09-30 11:07:35 -04:00
Brandon W Maister
4eeedcfcc4 Release 0.4.19 v0.4.19 2020-09-30 10:54:28 -04:00
Brandon W Maister
597717f0b0
Merge pull request #491 from quodlibetor/fix-oldtime-tzset
Fix call of extern tzset function
2020-09-30 10:41:41 -04:00
Brandon W Maister
fbc1b93431 Check that we compile on solaris
This also adds infrastructure to make it easier to add more check targets in
the future.
2020-09-30 10:27:10 -04:00
Alexander Jackson
6a97d72462
Fix a small typo in NaiveDateTime's Display impl (#492)
Fix a small typo in the documentation of NaiveDateTime's Display
implementation to say Display instead of Debug.
2020-09-30 10:24:18 -04:00
Brandon W Maister
f91e7e139c Tighten targets where tzset is defined
It doesn't need to be public in oldtime, and it is only used in the
illumos/solaris environments.
2020-09-30 09:55:25 -04:00
Brandon W Maister
f3bbc958a8 Fix call of extern tzset function 2020-09-29 19:50:15 -04:00
Brandon W Maister
c324d0ea08
Always run tests on merge (#487) 2020-09-29 17:26:41 -04:00
Brandon W Maister
866eb61277
Update changelog for 0.4.18 (#486) 2020-09-26 11:34:01 -04:00
Brandon W Maister
6f20fe3931 Release version 0.4.18 v0.4.18 2020-09-26 11:19:50 -04:00
Brandon W Maister
42a877f1bd Run tests when Cargo.toml changes 2020-09-26 11:19:25 -04:00
Brandon W Maister
cf771cb5be
Give an error message when the wasm test fails (#482) 2020-09-26 11:03:14 -04:00
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