19 package org.turro.timetracker;
21 import java.time.Duration;
22 import java.time.temporal.ChronoUnit;
23 import org.turro.elephant.entities.db.TimeTracker;
24 import org.turro.math.Round;
39 Duration total = Duration.ofMinutes(ChronoUnit.MINUTES.between(
this.tt.getLocalDateTime(), tt.
getLocalDateTime()));
40 return total.toHours() +
Round.
from(total.toMinutesPart() * 0.016666).
decimals(2).value();
LocalDateTime getLocalDateTime()
Round decimals(int digits)
static Round from(double value)
double getFrom(TimeTracker tt)
void assignFrom(TimeTracker tt)