bpholt / java-time-literals

Scala string interpolaters for parsing string literals into `java.time` instances at compile time

Version Matrix

java.time Literals

Parse Scala string literals into java.time instances at compile time.

> import dev.holt.javatime.literals._
> duration"PT20.345S"
val res0: java.time.Duration = PT20.345S