Skip to content

Commit

Permalink
Improve wording an example (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
NinoDLC authored May 3, 2023
1 parent a20f501 commit 8d26763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ by converting it to `LocalDateTime` and taking its `date` property.
```kotlin
val now: Instant = Clock.System.now()
val today: LocalDate = now.toLocalDateTime(TimeZone.currentSystemDefault()).date
// or more short
// or shorter
val today: LocalDate = Clock.System.todayIn(TimeZone.currentSystemDefault())
```
Note, that today's date really depends on the time zone in which you're observing the current moment.
Expand Down

0 comments on commit 8d26763

Please sign in to comment.