#LocalDate

2023-05-07

Mehr Zeit mit FreshMarker

Einer der Gründe für die Entwicklung der FreshMarker Bibliothek, war die fehlende Unterstützung der Java Time API in FreeMarker. Daher existierte schon in der ersten Implementierung neben der Unterstützung für java.util.Date, java.sql.Date und java.sql.Time auch eine Unterstützung f

schegge.de/2023/05/mehr-zeit-m

#BestPractices #Bibliotheken #Java #Format #FreeMarker #FreshMarker #Java #LocalDate #LocalTime #Template #Template-Engine

Æ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