Skip to content

Commit

Permalink
Expose DateTime type from chrono (#2)
Browse files Browse the repository at this point in the history
* Expose DateTime type from chrono

Some methods on NaiveDateTime are deprecated and replaced with DateTime.

* Add changelog entry

* Remove timestamp from changelog
  • Loading branch information
hongquan authored Mar 25, 2024
1 parent 70aa736 commit 1ff7381
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
<!-- next-header -->
## [Unreleased] - ReleaseDate

### Added
- Expose `DateTime` type to be used as replacement for some deprecated methods.

## [0.3.1] - 2024-02-01

### Added
Expand Down Expand Up @@ -55,4 +58,4 @@ future. All changes will be documented in this CHANGELOG.
[0.3.0]: https://github.com/eldruin/rtcc-rs/compare/v0.2.1...v0.3.0
[0.2.1]: https://github.com/eldruin/rtcc-rs/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/eldruin/rtcc-rs/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/eldruin/rtcc-rs/releases/tag/v0.1.0
[0.1.0]: https://github.com/eldruin/rtcc-rs/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ include = [
edition = "2021"

[dependencies]
chrono = { version = "0.4.33", default-features = false }
chrono = { version = "0.4.35", default-features = false }
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#![deny(unsafe_code, missing_docs)]
#![no_std]

pub use chrono::{Datelike, NaiveDate, NaiveDateTime, NaiveTime, Timelike};
pub use chrono::{DateTime, Datelike, NaiveDate, NaiveDateTime, NaiveTime, Timelike};

/// Hours in either 12-hour (AM/PM) or 24-hour format
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
Expand Down

0 comments on commit 1ff7381

Please sign in to comment.