Skip to content

Commit 7963391

Browse files
Add javadoc
1 parent d887c3a commit 7963391

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/rutebanken/time/XmlDateTime.java

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public XmlDateTime(LocalDateTime localDateTime) {
2323
this.localDateTime = Objects.requireNonNull(localDateTime);
2424
}
2525

26+
/**
27+
* Converts the abstract XML dateTime into a {@link ZonedDateTime}. If the underlying date time
28+
* was already zoned, then it is converted to the same instant but in the specified zoned.
29+
*/
2630
public ZonedDateTime atZone(ZoneId zoneId) {
2731
return zonedDateTime != null ? zonedDateTime.withZoneSameInstant(zoneId) : localDateTime.atZone(zoneId);
2832
}

0 commit comments

Comments
 (0)