Class DateCompare

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.temporal.DateCompare

@BoxBIF(description="Compare two date/time values") @BoxMember(type=DATETIME,name="compare") @BoxMember(type=DATETIME,name="compareTo") public class DateCompare extends BIF
  • Constructor Details

    • DateCompare

      public DateCompare()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Compares the difference between two dates - returning 0 if equal, -1 if date2 is less than date1 and 1 if the inverse
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation