Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

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. 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.

share|improve this question

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.

share|improve this answer
    
Thanks, I did not do the programming myself but I suppose that there was no transformation of the date and time and that I can assume that my times are GMT therefore – Bill Aug 5 '11 at 4:50
    
Here is a source for the default GMT times fact. dev.twitter.com/faq#47 – Duck Feb 12 at 18:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.