(long seconds)
| 22 | } |
| 23 | |
| 24 | public static Duration ofSeconds(long seconds) { |
| 25 | return new Duration(seconds, 0); |
| 26 | } |
| 27 | |
| 28 | public static Duration ofSeconds(long seconds, long nanoAdjustment) { |
| 29 | long secs = seconds + DateTimeSupport.floorDiv(nanoAdjustment, DateTimeSupport.NANOS_PER_SECOND); |