(Moment timepoint)
| 3235 | //~ Methoden ------------------------------------------------------ |
| 3236 | |
| 3237 | @Override |
| 3238 | public Moment apply(Moment timepoint) { |
| 3239 | |
| 3240 | LeapSeconds ls = LeapSeconds.getInstance(); |
| 3241 | |
| 3242 | if (ls.isEnabled()) { |
| 3243 | long utc = timepoint.getElapsedTime(TimeScale.UTC); |
| 3244 | LeapSecondEvent event = ls.getNextEvent(utc); |
| 3245 | |
| 3246 | if (event != null) { |
| 3247 | PlainTimestamp tsp = |
| 3248 | PlainDate.from(event.getDate()).atTime(23, 59, 59); |
| 3249 | return tsp.atUTC().plus(event.getShift(), SECONDS); |
| 3250 | } |
| 3251 | } |
| 3252 | |
| 3253 | return null; |
| 3254 | |
| 3255 | } |
| 3256 | |
| 3257 | } |
| 3258 |
nothing calls this directly
no test coverage detected