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

Method getMonth

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

Returns the month of this Timestamp, in its local time. @return a number within the range [1, 12], whereby 1 refers to January and 12 refers to December, in its local time; 1 is returned if the Timestamp isn't precise to the month

()

Source from the content-addressed store, hash-verified

1743 * the month
1744 */
1745 public int getMonth()
1746 {
1747 Timestamp adjusted = this;
1748
1749 if (this._offset != null) {
1750 if (this._offset.intValue() != 0) {
1751 adjusted = make_localtime();
1752 }
1753 }
1754 return adjusted._month;
1755 }
1756
1757
1758 /**

Calls 2

make_localtimeMethod · 0.95
intValueMethod · 0.65