()
| 235 | * @return current local timestamp |
| 236 | */ |
| 237 | public PlainTimestamp now() { |
| 238 | |
| 239 | final UnixTime ut = this.timeSource.currentTime(); |
| 240 | Timezone tz = (this.timezone == null) ? Timezone.ofSystem() : this.timezone; |
| 241 | return PlainTimestamp.from(ut, tz.getOffset(ut)); |
| 242 | |
| 243 | } |
| 244 | |
| 245 | /** |
| 246 | * <p>Gets the current timestamp in the associated timezone and given chronology. </p> |