From 8d26763e081e6f66d3b3f782813f5808ffca201d Mon Sep 17 00:00:00 2001 From: Nino Date: Wed, 3 May 2023 11:10:19 +0200 Subject: [PATCH] Improve wording an example (#252) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 98f7f93eb..153830651 100644 --- a/README.md +++ b/README.md @@ -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.