Returns the year of this Timestamp, in its local time. @return a number within the range [1, 9999], in its local time
()
| 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 | /** |