Post #199712
2026-01-31 17:21 UTC
@quarkusio@fosstodon.org If you work with human-readable period strings (ISO 8601) like "P7D" or "PT24H", mind that java.time.Period can only parse the former (no "T") and java.time.Duration can only parse the latter. (Ask your favourite AI for a somewhat convoluted explanation. 😉) joda.time.Period parses both, and also mixed. Make sure to reference a timezone and possibly absolute moment in time when doing calculations with Joda’s Period.
Replies (0)
No replies.