laterthan

Table of Contents

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).

Arguments:

  • 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

Example:

bundle agent example
{
    classes:

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

See also: on()