Prototype: laterthan(year, month, day, hour, minute, second)

Return type: boolean

Description: Returns whether the current time is later than the given date and time.

The specified date/time is an absolute date in the local timezone. Note that, unlike some other functions, the month argument is 1-based (i.e. 1 corresponds to January).


  • year: int, in the range: 0,10000
  • month: int, in the range: 0,1000
  • day: int, in the range: 0,1000
  • hour: int, in the range: 0,1000
  • minute: int, in the range: 0,1000
  • second: int, in the range: 0,40000


bundle agent example

      "after_deadline" expression => laterthan(2000,1,1,0,0,0);
        "deadline has passed";

See also: on()