Skip to content

Commit cf053ab

Browse files
committed
Update function names in readme
1 parent 897e2b2 commit cf053ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ val knownDate = LocalDate(2020, 2, 21)
144144

145145
### Converting instant to and from unix time
146146

147-
An `Instant` can be converted to unix millisecond time with the `toUnixMillis()` function.
148-
To convert back use `Instant.fromUnixMillis(Long)` companion object function.
147+
An `Instant` can be converted to a number of milliseconds since the Unix/POSIX epoch with the `toEpochMilliseconds()` function.
148+
To convert back, use `Instant.fromEpochMilliseconds(Long)` companion object function.
149149

150150
### Converting instant and local date/time to and from string
151151

0 commit comments

Comments
 (0)