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

@BoxBIF @BoxMember(type=DATETIME, name="diff", objectArgument="date1") public class DateDiff extends BIF
  • Constructor Details

    • DateDiff

      public DateDiff()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Returns the numeric difference in the requested date part between two dates
      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
    • getWeekDaysBetween

      public static Long getWeekDaysBetween(ZonedDateTime date1, ZonedDateTime date2)