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 - Year - in the range: 1970,3000
  • month: int - Month (January = 0) - in the range: 0,1000
  • day: int - Day (First day of month = 0) - in the range: 0,1000
  • hour: int - Hour - in the range: 0,1000
  • minute: int - Minute - in the range: 0,1000
  • second: int - Second - in the range: 0,1000

Example:

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