(
long seconds,
int fraction
)
| 264 | * @since 2.0 |
| 265 | */ |
| 266 | public static MachineTime<TimeUnit> ofPosixUnits( |
| 267 | long seconds, |
| 268 | int fraction |
| 269 | ) { |
| 270 | |
| 271 | if ((seconds == 0) && (fraction == 0)) { |
| 272 | return POSIX_ZERO; |
| 273 | } |
| 274 | |
| 275 | return new MachineTime<>(seconds, fraction, POSIX); |
| 276 | |
| 277 | } |
| 278 | |
| 279 | /** |
| 280 | * <p>Creates a machine time duration on the UTC scale. </p> |
no outgoing calls