The <date>
tag selects files whose last modified date meet the
date limits specified by the selector.
<fileset dir="${src}" includes="**/*.php"> <date datetime="01/01/2001 12:00 AM" when="before"/> </fileset>
Table G.2: Attributes for the <date>
selector
Name | Description | Default | Required |
---|---|---|---|
datetime | Specifies the date and time to test for. It should be in a format parsable by PHP's strtotime() function. | n/a | One of the two |
seconds | The number of seconds since Midnight Jan 1 1970 (Unix epoch) that should be tested for. | n/a | |
millis | The number of milliseconds since Midnight Jan 1 1970 (Unix epoch) that should be tested for. Note: It will be internaly converted to seconds. | n/a | |
when | Indicates how to interpret the date, whether the files to be selected
are those whose last modified times should be before, after, or equal to
the specified value. Accepted values are:
| equal | No |
granularity | The number of seconds leeway to use when comparing file modification times. | 0 | No |
checkdirs | Indicates whether or not to check dates on directories. | false | No |