Skip to content

Commit 94ded1d

Browse files
committed
Update README
1 parent 6bca758 commit 94ded1d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@
77
<a href="https://travis-ci.org/kean/NaiveDate"><img src="https://img.shields.io/travis/kean/NaiveDate/master.svg"></a>
88
</p>
99

10-
**Naive** date, time, and datetime types.
10+
`Date` type is great for working with time zones (e.g. `2017-09-29T15:00:00+0300`), however, there are scenarios in which **naive** dates and times are desirable.
1111

1212

1313
## Usage
1414

15-
Native `Date` type is great for working with time zones (e.g. "2017-09-29T15:00:00+0300"), however there are scenarios in which naive dates and times are desirable.
16-
1715
The library implements three types:
18-
- `NaiveDate` (e.g. "2017-09-29")
19-
- `NaiveTime` (e.g. "15:30:00")
20-
- `NaiveDateTime` (e.g. "2017-09-29T15:30:00" - no time zone and no offset).
16+
- `NaiveDate` (e.g. `2017-09-29`)
17+
- `NaiveTime` (e.g. `15:30:00`)
18+
- `NaiveDateTime` (e.g. `2017-09-29T15:30:00` - no time zone and no offset).
2119

22-
Each of the provided types implements `Equatable`, `Comparable`, `LosslessStringConvertible`, `Codable` protocols, and can also be converted to `Date`, and `DateComponents`.
20+
Each of the provided types implements `Equatable`, `Comparable`, `LosslessStringConvertible`, `Codable` protocols. Naive types can also be converted to `Date`, and `DateComponents`.
2321

2422
**Important!** The naive types do not perform any validation of the input components (year, hour, etc). If you do need to do any precise manipulations with time use native `Date` and `Calendar` types.
2523

0 commit comments

Comments
 (0)