twitter time date stamp -Which time zone is it?
I read in a post at stackoverflow about the time date stamp for tweets that
the timezone of each tweet is automatically converted to the local timezone. If you need UTC, you can use the
.ToUniversalTime()
method, for example:myTweet.CreatedDate.ToUniversalTime();
I wanted to know, when I download a tweet from Twitter's streaming API, what is the time zone.开发者_JS百科 In the answer above they wrote that it is converted to the local timezone. I was not sure if that is the local zone of me (the person downloading the tweet stream) or of the person sending the tweet or of some ISP or somewhere else. Could anyone clarify this?
Thanks very much.
The API stores and returns dates and times in GMT to avoid issues with clock changes.
According to this answer, you can use the utc_offset
property of the user object (which is returned with the tweet) to calculate the time relative to the user's timezone.
精彩评论