I am trying to convert code from Python to Java. I need to rewrite the timeDelta function in Java. Here is the code in Python:
timeDelta
def timeDate(date):
private static LocalTime timeDate(double d) { //converts into a local time return LocalTime.ofSecondOfDay((long)(d*3600%86400)); }
Input (d):
36.243356711275794
Output:
21:22:43