Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
Document new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldple committed Oct 18, 2019
1 parent ef44a42 commit 7c08e49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Since Version 2.0.1 (Unreleased)

- Added `between` method to get the `Duration` between two `DateTime`s.

## Version 2.0.1

- Minor documentation improvements
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ Each takes a single argument of the number to add/subtract. These methods all wr

A second time type, `Duration` exists for cases where a duration should be stored in hours, minutes and seconds. This is similar to the `TimeTuple` type but allows hours to be greater than 24.

The difference between any two `DateTime`s can be calculated using `Duration::between()`.

### Dates

Dates can be generated using the `datetuple::DateTuple` and `monthtuple::MonthTuple` types. The `MonthTuple` type is similar to `DateTuple` but doesn't include a day of the month.
Expand Down Expand Up @@ -230,6 +232,8 @@ The `date_time_tuple::DateTimeTuple` type wraps a `DateTuple` and a `TimeTuple`.

Like the other modules in this library, it is fully comparable with other `DateTimeTuple` structs.

The difference between two `DateTime`s can be calculated using `Duration::between()`.

##### Serialisation

`DateTimeTuple` can be serialised using `to_string()` (generated from Display trait) and `to_readable_string()`.
Expand Down

0 comments on commit 7c08e49

Please sign in to comment.