24 package org.lightjason.agentspeak.action.builtin.datetime;
26 import org.joda.time.Instant;
27 import org.joda.time.Months;
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 -> Months.monthsBetween( i.get( 0 ), i.get( 1 ) ) )
59 .mapToDouble( Months::getMonths )
abstract class to calculate difference between date-time elements
static final long serialVersionUID
serial id
returns the months between two dates.
final Stream<?> apply( @Nonnull final Stream< List< Instant >> p_datetime)