以比yyyy / mm / dd更高的精度列出邮件 [英] Listing messages with more precision than yyyy/mm/dd
问题描述
我试图通过使用Gmail API在特定时间点之后获取发送给用户的所有消息。我通过在 q = after:2015/01/19 ,成功检索了特定日期后的邮件.com / gmail / api / v1 / reference / users / messages / listrel =nofollow> API Explorer 。 我想成为比这更具体,并指定一天中的一小时和一分钟。这可能吗?自高级搜索 - 规范仅包含最有用的运算符后,我会问。 您可以使用搜索查询以 second 精度列出特定日期后的邮件。 / p>
在SOME_TIME_IN_SECONDS_SINCE_EPOCH 之后使用搜索字词。 Gmail支持使用时间戳替代yyyy / mm / dd格式的after关键字。
I'm trying to get all the messages sent to a user after a certain point in time, by using the Gmail API. I've successfully retrieved messages after a certain date by using the query q=after:2015/01/19
in the API Explorer.
I would like to be more specific than this and specify an hour and a minute of the day. Is this possible? I ask since the Advanced Search-specification only contains the most useful operators.
You can use a search query to list messages after a certain date with second accuracy.
Use the search term after:SOME_TIME_IN_SECONDS_SINCE_EPOCH
. Gmail supports the after keyword using a timestamp instead of the yyyy/mm/dd format.
这篇关于以比yyyy / mm / dd更高的精度列出邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!