Returns a number representing the Timestamp's point in time that is the number of milliseconds ( ignoring any fractional milliseconds) from the epoch. This method will return the same result for all Timestamps representing the same point in time, regardless of the local offset. @return
()
| 1638 | * milliseconds) from the epoch (1970-01-01T00:00:00.000Z) |
| 1639 | */ |
| 1640 | @SuppressWarnings("deprecation") |
| 1641 | public long getMillis() |
| 1642 | { |
| 1643 | // month is 0 based for Date |
| 1644 | long millis = Date.UTC(this._year - 1900, this._month - 1, this._day, this._hour, this._minute, this._second); |
| 1645 | if (this._fraction != null) { |
| 1646 | BigDecimal fracAsDecimal = this._fraction.movePointRight(3); |
| 1647 | int frac = isIntegralZero(fracAsDecimal) ? 0 : fracAsDecimal.intValue(); |
| 1648 | millis += frac; |
| 1649 | } |
| 1650 | return millis; |
| 1651 | |
| 1652 | } |
| 1653 | |
| 1654 | /** |
| 1655 | * Returns a BigDecimal representing the Timestamp's point in time that is |