提交 4102a128 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add a comment about 18h limit in ValueTimestampTimeZone

上级 871aa89f
......@@ -61,6 +61,11 @@ public class ValueTimestampTimeZone extends Value {
throw new IllegalArgumentException(
"timeNanos out of range " + timeNanos);
}
/*
* Some current and historic time zones have offsets larger than 12 hours.
* JSR-310 determines 18 hours as maximum possible offset in both directions, so
* we use this limit too for compatibility.
*/
if (timeZoneOffsetMins < (-18 * 60)
|| timeZoneOffsetMins > (18 * 60)) {
throw new IllegalArgumentException(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论