Search in sources :

Example 1 with SimpleTime

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);
}
Also used : LocalDateTime(java.time.LocalDateTime) SimpleTime(me.retrodaredevil.solarthing.pvoutput.SimpleTime) SimpleDate(me.retrodaredevil.solarthing.pvoutput.SimpleDate) AddStatusParametersBuilder(me.retrodaredevil.solarthing.pvoutput.data.AddStatusParametersBuilder)

Aggregations

LocalDateTime (java.time.LocalDateTime)1 SimpleDate (me.retrodaredevil.solarthing.pvoutput.SimpleDate)1 SimpleTime (me.retrodaredevil.solarthing.pvoutput.SimpleTime)1 AddStatusParametersBuilder (me.retrodaredevil.solarthing.pvoutput.data.AddStatusParametersBuilder)1