mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-07-04 03:36:44 +03:00
Implemented climatic forecast for 30 days. Some refactoring.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.github.prominence.openweathermap.api.utils;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.TimeZone;
|
||||
|
||||
public class TestMappingUtils {
|
||||
|
||||
public static LocalDateTime parseDateTime(int seconds) {
|
||||
return LocalDateTime.ofInstant(Instant.ofEpochSecond(seconds), TimeZone.getDefault().toZoneId());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user