24 package org.lightjason.agentspeak.action.builtin.datetime;
29 import javax.annotation.Nonnull;
30 import java.time.ZonedDateTime;
31 import java.util.List;
52 protected final boolean elements( @Nonnull
final ZonedDateTime p_datetime, @Nonnull
final List<ITerm> p_return )
55 p_return.add(
CRawTerm.
from( p_datetime.getMonthValue() ) );
56 p_return.add(
CRawTerm.
from( p_datetime.getDayOfMonth() ) );
57 p_return.add(
CRawTerm.
from( p_datetime.getDayOfWeek() ) );
58 p_return.add(
CRawTerm.
from( p_datetime.getDayOfYear() ) );
abstract class for date-time access
static final long serialVersionUID
serial id
action for getting the current date.
final boolean elements( @Nonnull final ZonedDateTime p_datetime, @Nonnull final List< ITerm > p_return)
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
term structure for simple datatypes