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

Method getYear

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

Returns the year of this Timestamp, in its local time. @return a number within the range [1, 9999], in its local time

()

Source from the content-addressed store, hash-verified

1721 * a number within the range [1, 9999], in its local time
1722 */
1723 public int getYear()
1724 {
1725 Timestamp adjusted = this;
1726
1727 if (this._offset != null) {
1728 if (this._offset.intValue() != 0) {
1729 adjusted = make_localtime();
1730 }
1731 }
1732 return adjusted._year;
1733 }
1734
1735
1736 /**

Callers 12

testForDateZMethod · 0.95
testForSqlTimestampZMethod · 0.95
checkFieldsMethod · 0.80
doPrintHelpMethod · 0.80
writeTimestampValueMethod · 0.80

Calls 2

make_localtimeMethod · 0.95
intValueMethod · 0.65

Tested by 7

testForDateZMethod · 0.76
testForSqlTimestampZMethod · 0.76
checkFieldsMethod · 0.64