Skip to content

Commit 42def80

Browse files
Update Cargo.toml
Updated README.md Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
1 parent ce6ea28 commit 42def80

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "parse_datetime"
3-
description = "parsing human-readable relative and absolute time strings and converting them to a DateTime"
3+
description = "parsing human-readable time strings and converting them to a DateTime"
44
version = "0.4.0"
55
edition = "2021"
66
license = "MIT"

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ Then, import the crate and use the `parse_datetime_at_date` function:
2929
use chrono::{Duration, Local};
3030
use parse_datetime::parse_datetime_at_date;
3131

32-
let now = Local::now();
33-
let after = parse_datetime_at_date(now, "+3 days");
34-
35-
assert_eq!(
36-
(now + Duration::days(3)).naive_utc(),
37-
after.unwrap().naive_utc()
38-
);
32+
let now = Local::now();
33+
let after = parse_datetime_at_date(now, "+3 days");
3934

35+
assert_eq!(
36+
(now + Duration::days(3)).naive_utc(),
37+
after.unwrap().naive_utc()
38+
);
4039
```
4140

4241
For DateTime parsing, import the `parse_datetime` module:

0 commit comments

Comments
 (0)