xun su
02/13/2023, 10:51 PM2023-01-01
to milliseconds, what should I do? is there something like Date(2023,1,1).getMillisecond()
?Casey Brooks
02/13/2023, 11:07 PMLocalDate
APIs on Android, but you’ll need to enable desugaringxun su
02/13/2023, 11:38 PMval startTime = LocalDateTime.of(2023, 1, 1, 0, 0, 0).toEpochSecond(ZoneOffset.of("+08:00"))
which is inspired by your advice. You made my day!