Skip to content

Commit 083ad5d

Browse files
typos
1 parent 1188afd commit 083ad5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Feature of CFTime include:
1616
* Per default, the time counter is a 64-bit integer, but other integers types (such as `Int32`, `Int128` or `BigInt`) or floating-point types can be used (not recommended)
1717
* Basic arithmetic such as computing the duration between two time instances
1818
* Conversion function between types and Julia's `DateTime`.
19-
* Time range
19+
* Time ranges
2020

2121

2222
## Installation

docs/src/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,16 @@ For example, duration 3600000 milliseconds is represented as `duration = 3600000
225225
3600000 milliseconds = 3600000 * 1 * 10⁻³ seconds
226226
```
227227

228-
or the durtion 1 hours is `duration = 1`, `Tfactor = Val(3600)` and `Texponent = Val(0)` since:
228+
or the duration 1 hours is `duration = 1`, `Tfactor = Val(3600)` and `Texponent = Val(0)` since:
229229

230230
```
231231
1 hour = 3600 * 1 * 10⁰ seconds
232232
```
233233

234234
There is no normalization of the time duration per default as it could lead to under-/overflow.
235235

236-
The type parameter `T2` of `DateTimeStandard` encodes the time origin as a tuple of integers starting with the year (year,month,day,hour,minute,seconds,milliseconds,microseconds,...). Only the year, month and day need specified; all other default to zero.
237-
For example `T2` would be `Val((1970,1,1))` if the time origin is the 1st January 1970).
236+
The type parameter `T2` of `DateTimeStandard` encodes the time origin as a tuple of integers starting with the year (year,month,day,hour,minute,seconds,...attoseconds). Only the year, month and day need specified; all other default to zero.
237+
For example `T2` would be `Val((1970,1,1))` if the time origin is the 1st January 1970.
238238

239239
By using value types as type parametes, the time origin, time resolution... are known to the compiler.
240240
For example, computing the difference between between two date time expressed in as the same time origin and units as a single substraction:

0 commit comments

Comments
 (0)