Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

twitter time date stamp -Which time zone is it?

Tags:

twitter

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.

like image 481
Bill Avatar asked Aug 04 '11 01:08

Bill


People also ask

Is twitter timestamp local time?

the timezone of each tweet is automatically converted to the local timezone.

How do you check twitter time zone?

Step 1: First of all, you have to sign in to your account on twitter.com. Step 2: Then, you need to click on your profile icon and select Settings from the drop-down menu. Step 3: Here, you have to click Account and then choose your time zone from the Time zone drop-down menu.

How is the date written on twitter?

Dr. Kristin Briney on Twitter: "There is one correct way to write a date and it's YYYY-MM-DD. https://t.co/HcpEUblwCE" / Twitter.

What is twitter time stamp?

So, we built Timestamps which lets anyone Tweet a live or replay video starting from the exact moment they want to discuss. Sharing Timestamps is easy.


1 Answers

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.

like image 79
Intelekshual Avatar answered Oct 19 '22 13:10

Intelekshual