Jul-02-2023, 05:00 AM
ok, the timestamp is always displayed by numbers something like this '1679796823.977553'
And I think I do compare the "mtime" var which is the timestamp of each file against the "timestamp filter" that was created with the:
I'm comparing the "timestamp filter" localized for the target timezone.
Right?
Why I'm failing, I'm comparing the same time format that is UTC....
Sorry about this, I did not mean to give you a hard time!
Thank you.
And I think I do compare the "mtime" var which is the timestamp of each file against the "timestamp filter" that was created with the:
#start_time = datetime.combine(date.today(), time(), tzinfo=timezone("US/Pacific")) start_time = datetime.combine(date.today(), time(), tzinfo=timezone("Asia/Kuala_Lumpur")) end_time = start_time + timedelta(hours=24) print(start_time, end_time) # Convert to timestamps. start_time = start_time.timestamp() end_time = end_time.timestamp() print(start_time, end_time)it seems the logic is sound...
I'm comparing the "timestamp filter" localized for the target timezone.
Right?
Why I'm failing, I'm comparing the same time format that is UTC....
Sorry about this, I did not mean to give you a hard time!
Thank you.