比 yyyy/mm/dd 更精确地列出消息 [英] Listing messages with more precision than yyyy/mm/dd
问题描述
我正在尝试使用 Gmail API 获取在某个时间点之后发送给用户的所有邮件.我已经通过在 API Explorer.
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.
使用搜索词 after:SOME_TIME_IN_SECONDS_SINCE_EPOCH
.Gmail 支持使用时间戳而不是 yyyy/mm/dd 格式的 after 关键字.
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屋!