Skip to content

Commit 190c561

Browse files
docs: Fix typos in documentation
1 parent 7d6cd6e commit 190c561

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/API.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ To escape characters in the format string, wrap them in square brackets (e.g. `[
200200
### getUnixTime
201201

202202
```
203-
getUnixTime(time: Date|Time, timeZone?: object) : number
203+
getUnixTime(time: Time, timeZone?: object) : number
204204
```
205205

206206
Returns a Unix timestamp (UTC) for the given incomplete [time object] converted from the given time zone.
@@ -216,7 +216,7 @@ const date = getZonedTime(date, berlin)
216216
// Returns the UNIX timestamp (UTC) in milliseconds
217217
```
218218

219-
This method is usually used with incomplete time objects, which are entered by the user, or parsed from date strings without time zone information. (A complete [time object] contains properties `echo` with the UTC time and `zone` with the time zone information.)
219+
This method is usually used with incomplete time objects, which are entered by the user, or parsed from date strings without time zone information. (A complete [time object] contains properties `epoch` with the UTC time and `zone` with the time zone information.)
220220

221221
The returned object is supposed to be passed to other functions, which use it to convert dates. It is not supposed to be inspected outside of this library.
222222

@@ -460,7 +460,7 @@ Options:
460460
$ create-timezone-data -m -o custom-data.js 1970 2038
461461
```
462462

463-
The module generated by this tool exposes a data object as a default export, which is expected bu the function[populatePluralData](#populatepluraldata).
463+
The module generated by this tool exposes a data object as a default export, which is expected by the function [populatePluralData](#populatepluraldata).
464464

465465
[time object]: ./design.md#time-object
466466
[IANA time zones]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

0 commit comments

Comments
 (0)