(long epochMilli)
| 17 | } |
| 18 | |
| 19 | public static Instant ofEpochMilli(long epochMilli) { |
| 20 | long secs = DateTimeSupport.floorDiv(epochMilli, 1000L); |
| 21 | int nanos = (int) (DateTimeSupport.floorMod(epochMilli, 1000L) * 1000000L); |
| 22 | return new Instant(secs, nanos); |
| 23 | } |
| 24 | |
| 25 | public static Instant ofEpochSecond(long epochSecond) { |
| 26 | return new Instant(epochSecond, 0); |
no test coverage detected