24 package org.lightjason.agentspeak.action.builtin.datetime;
26 import org.joda.time.Hours;
27 import org.joda.time.Instant;
29 import javax.annotation.Nonnull;
30 import java.util.List;
31 import java.util.stream.Stream;
55 protected final Stream<?>
apply( @Nonnull
final Stream<List<Instant>> p_datetime )
58 .map( i -> Hours.hoursBetween( i.get( 0 ), i.get( 1 ) ) )
59 .mapToDouble( Hours::getHours )
abstract class to calculate difference between date-time elements
returns the hours between two dates.
final Stream<?> apply( @Nonnull final Stream< List< Instant >> p_datetime)
static final long serialVersionUID
serial id