date/time inequality like math operations

Discussion related to "Everything" 1.5 Alpha.
Post Reply
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

date/time inequality like math operations

Post by anmac1789 »

Can date and time inequalities be used ? for example, find all the picture files with dates between:


2024-10-24T02=<dm:>=2024-03-05T02 OR

Jan 1, 2024 ..March 5, 2024 AND March 5, 2024..Dec 31, 2024 ???
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: date/time inequality like math operations

Post by void »

dm:>=2024-03-05T02 dm:<=2024-10-24T02

-or-
dm:2024-03-05T02..2024-10-24T02
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: date/time inequality like math operations

Post by anmac1789 »

void wrote: Thu Oct 24, 2024 5:35 am
dm:>=2024-03-05T02 dm:<=2024-10-24T02

I thought that
dm:>=2024-03-05T02
would not work because of DST ? 2 AM doesn't exist when DST is active?
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: date/time inequality like math operations

Post by void »

2024-03-05T02 is converted to 2024-03-05T01

use:
dm:>2024-03-05T01:59
-or-
dm:>=2024-03-05T03:00
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: date/time inequality like math operations

Post by anmac1789 »

ooohhh ok thanks!
Post Reply