LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.action.builtin.datetime.CDate Class Reference

action for getting the current date. More...

+ Inheritance diagram for org.lightjason.agentspeak.action.builtin.datetime.CDate:
+ Collaboration diagram for org.lightjason.agentspeak.action.builtin.datetime.CDate:

Protected Member Functions

final boolean elements ( @Nonnull final ZonedDateTime p_datetime, @Nonnull final List< ITerm > p_return)
 
- Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.datetime.IDateTime
 IDateTime ()
 ctor More...
 
abstract boolean elements ( @Nonnull final ZonedDateTime p_datetime, @Nonnull final List< ITerm > p_return)
 transfers the date-time element to term elements More...
 
- Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
 IBuiltinAction ()
 ctor More...
 
 IBuiltinAction (final int p_length)
 ctor More...
 

Static Private Attributes

static final long serialVersionUID = 4490065527882057197L
 serial id More...
 

Additional Inherited Members

- Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.datetime.IDateTime
final IFuzzyValue< Boolean > execute (final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
 defines a plan-body operation More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
final IPath name ()
 returns the name with path of the action More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.IBaseAction
final boolean equals (final Object p_object)
 
final int hashCode ()
 
final String toString ()
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.IAction
default int minimalArgumentNumber ()
 minimum number of arguments More...
 
default Stream< IVariable<?> > variables ()
 returns a stream with all used variables More...
 
- Public Attributes inherited from org.lightjason.agentspeak.action.IAction
long serialVersionUID = -6374480398439703170L
 serial id More...
 
- Static Protected Attributes inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
static final Logger LOGGER = CCommon.logger( IBuiltinAction.class )
 logger More...
 
- Static Protected Attributes inherited from org.lightjason.agentspeak.action.IBaseAction
static final Logger LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAction.class )
 logger More...
 

Detailed Description

The action returns the date elements of a parsed string or date-time object, if the string is empty or "now" the current date-time is used, the action fails on wrong input

[Year|Month|Day|DayOfWeek|DayOfYear] = datetime/date( "now" );

Definition at line 44 of file CDate.java.

Member Function Documentation

◆ elements()

final boolean org.lightjason.agentspeak.action.builtin.datetime.CDate.elements ( @Nonnull final ZonedDateTime  p_datetime,
@Nonnull final List< ITerm p_return 
)
protected

Definition at line 52 of file CDate.java.

References org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

Member Data Documentation

◆ serialVersionUID

final long org.lightjason.agentspeak.action.builtin.datetime.CDate.serialVersionUID = 4490065527882057197L
staticprivate

Definition at line 49 of file CDate.java.