MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / getHour

Method getHour

src/main/java/com/amazon/ion/Timestamp.java:1786–1795  ·  view source on GitHub ↗

Returns the hour of this Timestamp, in its local time. @return a number within the range [0, 23], in its local time; 0 is returned if the Timestamp isn't precise to the hour

()

Source from the content-addressed store, hash-verified

1784 * precise to the hour
1785 */
1786 public int getHour()
1787 {
1788 Timestamp adjusted = this;
1789 if (this._offset != null) {
1790 if (this._offset.intValue() != 0) {
1791 adjusted = make_localtime();
1792 }
1793 }
1794 return adjusted._hour;
1795 }
1796
1797
1798 /**

Calls 2

make_localtimeMethod · 0.95
intValueMethod · 0.65