Подскажите что я делаю не так?
package com.javarush.task.pro.task16.task1614;
import java.time.Instant;
/*
Конец времен
*/
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() {
return Instant.ofEpochSecond(Long.MAX_VALUE);
}
static Instant getMaxFromSecondsAndNanos() {
return Instant.ofEpochSecond(Long.MAX_VALUE, Long.MAX_VALUE);
}
}