Skip to content

Releases: baoyachi/duration-str

fix overflow

18 Sep 04:00
a5d02e0
Compare
Choose a tag to compare

update License

26 Jul 10:17
322b683
Compare
Choose a tag to compare

Bump rust_decimal crates version

06 Jun 07:09
2934f01
Compare
Choose a tag to compare
0.5.1

Update Cargo.toml

Refactor Result

21 Nov 10:35
4a996e2
Compare
Choose a tag to compare

0.4.0: Merge pull request #10 from baoyachi/issue_8

04 Jul 01:49
b94a4ca
Compare
Choose a tag to compare

Make the plus operator optional

18 Mar 02:48
Compare
Choose a tag to compare

add before,after NaiveDateTime function

04 Nov 03:28
Compare
Choose a tag to compare

optimization parse_naive_date_time function

03 Nov 17:18
Compare
Choose a tag to compare
0.3.6

upgrade duration-str#0.3.6

add parse naive date time

03 Nov 17:12
Compare
Choose a tag to compare

#[cfg(feature = "chrono")]
pub fn parse_naive_date_time<S: Into>(input: S) -> anyhow::Resultchrono::NaiveDateTime {
let std_duration = parse_std(input)?;
let duration = chrono::Duration::from_std(std_duration)?;
let time = (Utc::now() + duration).naive_utc();
Ok(time)
}

#[cfg(feature = "chrono")]
pub fn parse_naive_date<S: Into>(input: S) -> anyhow::Resultchrono::NaiveDate {
let date = parse_naive_date_time(input)?;
Ok(date.date())
}

update repository url

26 Aug 08:07
Compare
Choose a tag to compare
0.3.4

update repository url