Skip to content

Commit

Permalink
remove deprecated Time class
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Apr 15, 2024
1 parent 6f88a4c commit d86d045
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 407 deletions.
127 changes: 0 additions & 127 deletions datetime/src/commonMain/kotlin/pro/respawn/kmmutils/datetime/Time.kt

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,10 @@ public fun Iterable<DayOfWeek>.sortedByLocale(locale: Locale = Locale.getDefault
all.add(0, first)
return all
}

/**
* Creates a new [ZonedDateTime] using [this] Instant and a given [zoneId]
*/
public fun Instant.toZDT(
zoneId: ZoneId,
): ZonedDateTime = ZonedDateTime.ofInstant(this, zoneId)
Loading

0 comments on commit d86d045

Please sign in to comment.