Skip to content

Commit dbcb168

Browse files
authored
Merge pull request #1123 from willshiao/patch-1
Update time docs to reflect new chrono feature flag name
2 parents 12ceb62 + af69a1d commit dbcb168

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/source/data-types/date.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ while let Some((date_value,)) = iter.try_next().await? {
4242

4343
## chrono::NaiveDate
4444

45-
If full range is not required and `chrono` feature is enabled,
45+
If full range is not required and `chrono-04` feature is enabled,
4646
[`chrono::NaiveDate`](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveDate.html) can be used.
4747
[`chrono::NaiveDate`](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveDate.html) supports dates from
4848
-262145-01-01 to 262143-12-31.
@@ -78,7 +78,7 @@ while let Some((date_value,)) = iter.try_next().await? {
7878

7979
## time::Date
8080

81-
Alternatively, `time` feature can be used to enable support of
81+
Alternatively, the `time-03` feature can be used to enable support of
8282
[`time::Date`](https://docs.rs/time/0.3/time/struct.Date.html).
8383
[`time::Date`](https://docs.rs/time/0.3/time/struct.Date.html)'s value range depends on feature flags, see its
8484
documentation to get more info.

docs/source/data-types/time.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ while let Some((value,)) = iter.try_next().await? {
4242

4343
## chrono::NaiveTime
4444

45-
If `chrono` feature is enabled, [`chrono::NaiveTime`](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveDate.html)
45+
If the `chrono-04` feature is enabled, [`chrono::NaiveTime`](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveDate.html)
4646
can be used to interact with the database. Although chrono can represent leap seconds, they are not supported.
4747
Attempts to convert [`chrono::NaiveTime`](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveDate.html) with leap
4848
second to `CqlTime` or write it to the database will return an error.
@@ -78,7 +78,7 @@ while let Some((time_value,)) = iter.try_next().await? {
7878

7979
## time::Time
8080

81-
If `time` feature is enabled, [`time::Time`](https://docs.rs/time/0.3/time/struct.Time.html) can be used to interact
81+
If the `time-03` feature is enabled, [`time::Time`](https://docs.rs/time/0.3/time/struct.Time.html) can be used to interact
8282
with the database.
8383

8484
```rust

docs/source/data-types/timestamp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ while let Some((value,)) = iter.try_next().await? {
4343

4444
## chrono::DateTime
4545

46-
If full value range is not required, `chrono` feature can be used to enable support of
46+
If the full value range is not required, the `chrono-04` feature can be used to enable support of
4747
[`chrono::DateTime`](https://docs.rs/chrono/0.4/chrono/struct.DateTime.html). All values are expected to be converted
4848
to UTC timezone explicitly, as [timestamp](https://docs.scylladb.com/stable/cql/types.html#timestamps) doesn't store
4949
timezone information. Any precision finer than 1ms will be lost.
@@ -83,7 +83,7 @@ while let Some((timestamp_value,)) = iter.try_next().await? {
8383

8484
## time::OffsetDateTime
8585

86-
Alternatively, `time` feature can be used to enable support of
86+
Alternatively, the `time-03` feature can be used to enable support of
8787
[`time::OffsetDateTime`](https://docs.rs/time/0.3/time/struct.OffsetDateTime.html). As
8888
[timestamp](https://docs.scylladb.com/stable/cql/types.html#timestamps) doesn't support timezone information, time will
8989
be corrected to UTC and timezone info will be erased on write. On read, UTC timestamp is returned. Any precision finer

0 commit comments

Comments
 (0)