You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We received a few requests to add converters from LocalDate and LocalDateTime to NSDate. Given that NSDate is essentially the same as Instant, they could look something like this:
fun LocalDate.toNSDateAtStartOfDayIn(timeZone:TimeZone) =
atStartOfDayIn(timeZone).toNSDate()
fun LocalDateTime.toNSDate(timeZone:TimeZone) =
toInstant(timeZone).toNSDate()
They seem quite short, but if they are tricky to get right, maybe we could introduce them to the library.
The text was updated successfully, but these errors were encountered:
We received a few requests to add converters from
LocalDate
andLocalDateTime
toNSDate
. Given thatNSDate
is essentially the same asInstant
, they could look something like this:They seem quite short, but if they are tricky to get right, maybe we could introduce them to the library.
The text was updated successfully, but these errors were encountered: