on

Table of Contents

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

Return type: int

Description: Returns the specified date/time in integer system representation.

The specified date/time is an absolute date in the local timezone.

Arguments:

  • year: int, in the range: 1970,3000
  • 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,1000

Example:

    body file_select zero_age
    {
      mtime       => irange(on(2000,1,1,0,0,0),now);
      file_result => "mtime";
    }

Notes: In process matching, dates could be wrong by an hour depending on Daylight Savings Time / Summer Time. This is a known bug to be fixed.