Now you can get internalDatethrough the Gmail API, which represents the time when the message was created on Google, equal to ms.
List messages:
GET https://www.googleapis.com/gmail/v1/users/me/messages?access_token={YOUR_API_KEY}
Answer:
{
"messages": [
{
"id": "14ea5fa7f99dc9e6",
"threadId": "14ea5fa7f99dc9e6"
}, ...
}
And receive messages individually by requesting internalDate.
GET https:
Answer:
{
"internalDate": "1437303729000" // This is the time in ms it was created.
}
, internalDate , User.thread: get-request.