I have a cron job that DLs records using a jsforce
query. It runs at 9:30UTC and attempts to DL all records in that day and then ALL of yesterday (so it basically should be a total of all records created in the last 33.5 hours)
The query is as such SELECT Id FROM Record__c WHERE CreatedDate IN (today, yesterday)
.
Is this query correct in doing what I think it is (getting everything from the last 33.5 hours of 9:30UTC)?
I suspect a record may not have been DLd. I'd like to "replay" this query, how can I substitute real datetimes in place of the today
and yesterday
literals (what format should it be in)?