If you are using the Realtyna MLS Addon for Realtyna WPL for WordPress to download listings using RETS, you might have come across the need to query only new data from the last time a sync / query was run (successfully). The major benefit of course being a smaller and faster download and processing of new MLS data. Rather oddly this functionality, at least as of version 4.2.6 of the MLS Addon, exists but is not documented. From the MLS Query screen, when editing a query you can set special text keywords in the Advanced section of the Query Wizard for the value Date/Time fields. These keywords are automatically expanded in the resulting RETS query with values as shown below.
Start Date – The date of the last successful sync
End Date -[Start Date] + [Sync Interval] days (default sync interval is 1)
|Example (Start Date = 2020-01-01, End Date = 2021-02-10)
|On or between [Start Date] and [End Date]
|[End Date] with Time in UTC
|[Start Date] with Time in UTC
|On or after [Start Date] with Time
|On or between [Start Date] with Time and [End Date] with TIme
|On or after [Start Date]
For further information you can view the source for create_query() in libraries/services/addon_mls.php.