Skip to content

Commit bfc8fb8

Browse files
committed
update README with link to tests and note about timezones on JS/Native
1 parent 0175acd commit bfc8fb8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,17 @@ Parse Scala string literals into `java.time` instances at compile time.
77
> duration"PT20.345S"
88
val res0: java.time.Duration = PT20.345S
99
```
10+
11+
See the [test suite for comprehensive examples](https://github.com/bpholt/java-time-literals/blob/main/core/shared/src/test/scala/dev/holt/javatime/JavaTimeSuite.scala)
12+
of all supported literal types.
13+
14+
## Scala.js and Scala Native
15+
16+
Since Scala.js and Scala Native don't have a built-in timezone database, if you need to use
17+
timezones other than UTC on those platforms, make sure to include
18+
19+
```scala
20+
"io.github.cquiroz" %%% "scala-java-time-tzdb" % "2.5.0"
21+
```
22+
23+
in your project dependencies.

0 commit comments

Comments
 (0)