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