#ChronoUnit

Ænðr E. Feldstrawaeveltstra
2019-08-16

This must be the stupidest API ever.

How to convert from to java.util.Instant with and .

Just getting the date from omits the time. So we have to read that separately, convert sql date and time to and , and then create an intermediary to collect each , and then convert the result to milliseconds since .

Ugh.

My java source code that does what the post says.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst