create_modification_time_range method

create_modification_time_range

Creates a filter for skipping documents with modification date out of the specified range.

def create_modification_time_range(cls, lower_bound, upper_bound):
    ...
Parameter Type Description
lower_bound datetime The lower bound of the document modification time.
upper_bound datetime The upper bound of the document modification time.

Returns: DocumentFilter: A document filter by document modification time.

Example

import datetime
from groupdocs.search.options import DocumentFilter

filter = DocumentFilter.create_modification_time_range(
    datetime.datetime(2017, 1, 1),
    datetime.datetime(2018, 6, 15)
)
print(filter)

See Also