System:Model:inPastXDays

From Aspen Documentation

Finds timestamps in the last $day_count days.

Since 1.0

Arguments

void inPastXDays (string $field, [string $day_count = 7], [string $match = 'AND'])

field
Database table field name.
day_count
Number of days in the past.
match
Connecting operator to previous where statement. Default is AND.

Returns

This function does not return an array.

Examples

Example:

$this->APP->model->inPastXDays('timestamp', 30);