I understand what the task is trying to make me do, but I don't understand how to do it. I've tried using millisecond to second conversions, but I can't seem to convert it, because I'm not getting the exact amount the milliseconds are giving me.
package en.codegym.task.pro.task16.task1614;
import java.time.Instant;
/*
The end of times
*/
public class Solution {
public static void main(String[] args) {
System.out.println(getMaxFromMilliseconds());
System.out.println(getMaxFromSeconds());
System.out.println(getMaxFromSecondsAndNanos());
}
static Instant getMaxFromMilliseconds() {
return Instant.ofEpochMilli(Long.MAX_VALUE);
}
static Instant getMaxFromSeconds() {
// idk
}
static Instant getMaxFromSecondsAndNanos() {
//return Instant.ofEpochSecond(Long.MAX_VALUE, Long.MAX_VALUE);
}
}