Listing messages with greater precision than yyyy / mm / dd

I am trying to get all messages sent to a user at a specific point in time using the Gmail API. I successfully received messages after a certain date using the q=after:2015/01/19 in the API Explorer .

I would like to be more specific than this, and indicate the hour and minute of the day. Is it possible? I ask, since Advanced Search - the specification contains only the most useful operators.

+3
source share
1 answer

You can use the search query to display messages after a certain date with a second precision.

Use the after:SOME_TIME_IN_SECONDS_SINCE_EPOCH search query after:SOME_TIME_IN_SECONDS_SINCE_EPOCH . Gmail supports the after keyword by using a timestamp instead of the yyyy / mm / dd format.

+6
source

Source: https://habr.com/ru/post/1236784/


All Articles