use of me.retrodaredevil.solarthing.pvoutput.SimpleTime in project solarthing by wildmountainfarms.
the class PVOutputHandler method createStatusBuilder.
private static AddStatusParametersBuilder createStatusBuilder(ZoneId zoneId, long dateMillis) {
LocalDateTime localDateTime = Instant.ofEpochMilli(dateMillis).atZone(zoneId).toLocalDateTime();
SimpleDate date = SimpleDate.fromTemporal(localDateTime);
SimpleTime time = SimpleTime.fromTemporal(localDateTime);
return new AddStatusParametersBuilder(date, time);
}
Aggregations