获取发布 YouTube 评论的确切时间
Get exact time of a posted YouTube comment
我没有找到任何相关信息。
例如,当您查看 YouTube 评论时,旁边会显示一个时间戳,上面写着“1 小时前”。
现在是“1 小时前”,不是精确的时间指示。它可以是 1 小时 00 分钟到 1 小时 59 分钟之间的任何时间。
那么是否可以获取已发布的 YouTube 评论的 excat 时间,例如 'Wednesday 18, 9:36'?
编辑
这是我获取准确时间和修改时间的解决方案:
https://www.googleapis.com/youtube/v3/comments?part=snippet&fields=items(snippet/publishedAt,snippet/updatedAt)&id={COMMENT_ID}&key={YOUR_API_KEY}
是的。 API returns 完整的日期时间,如您在此处的 json 中所见:
"publishedAt": datetime,
"updatedAt": datetime
https://developers.google.com/youtube/v3/docs/comments#resource
我没有找到任何相关信息。
例如,当您查看 YouTube 评论时,旁边会显示一个时间戳,上面写着“1 小时前”。
现在是“1 小时前”,不是精确的时间指示。它可以是 1 小时 00 分钟到 1 小时 59 分钟之间的任何时间。
那么是否可以获取已发布的 YouTube 评论的 excat 时间,例如 'Wednesday 18, 9:36'?
编辑
这是我获取准确时间和修改时间的解决方案:
https://www.googleapis.com/youtube/v3/comments?part=snippet&fields=items(snippet/publishedAt,snippet/updatedAt)&id={COMMENT_ID}&key={YOUR_API_KEY}
是的。 API returns 完整的日期时间,如您在此处的 json 中所见:
"publishedAt": datetime,
"updatedAt": datetime
https://developers.google.com/youtube/v3/docs/comments#resource