mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-09-01 05:56:15 +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