gnu.prolog.vm.buildins.datetime
Class Predicate_date_time_value
java.lang.Object
gnu.prolog.vm.ExecuteOnlyCode
gnu.prolog.vm.buildins.datetime.DateTimePrologCode
gnu.prolog.vm.buildins.datetime.Predicate_date_time_value
- All Implemented Interfaces:
- Installable, PrologCode
public class Predicate_date_time_value
- extends DateTimePrologCode
- Author:
- Michiel Hendriks
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
yearAtom
public static final AtomTerm yearAtom
monthAtom
public static final AtomTerm monthAtom
dayAtom
public static final AtomTerm dayAtom
hourAtom
public static final AtomTerm hourAtom
minuteAtom
public static final AtomTerm minuteAtom
secondAtom
public static final AtomTerm secondAtom
utcOffsetAtom
public static final AtomTerm utcOffsetAtom
timeZoneAtom
public static final AtomTerm timeZoneAtom
daylightSavingAtom
public static final AtomTerm daylightSavingAtom
date9keys
public static final AtomTerm[] date9keys
Predicate_date_time_value
public Predicate_date_time_value()
execute
public int execute(Interpreter interpreter,
boolean backtrackMode,
Term[] args)
throws PrologException
- Description copied from interface:
PrologCode
- this method is used for execution of code
- Specified by:
execute
in interface PrologCode
- Specified by:
execute
in class ExecuteOnlyCode
- Parameters:
interpreter
- interpreter in which context code is executedbacktrackMode
- true if predicate is called on backtracking and false otherwiseargs
- arguments of code
- Returns:
- either SUCCESS, SUCCESS_LAST, or FAIL.
- Throws:
PrologException
getDate9Value
protected Term getDate9Value(Term term,
CompoundTerm date9)
throws PrologException
- Parameters:
term
- date9
-
- Returns:
-
- Throws:
PrologException
nextSolution
protected int nextSolution(Interpreter interpreter,
gnu.prolog.vm.buildins.datetime.Predicate_date_time_value.Date9BacktrackInfo bi)
throws PrologException
- Parameters:
interpreter
- bi
-
- Returns:
-
- Throws:
PrologException