Re: [twitter-dev] Date and Time from created_at fromTwitter API in PHP

2010-05-22 Thread Bernd Stramm
On Sat, 22 May 2010 16:27:31 -0700 (PDT) giustin wrote: > Hi, > > In PHP, I can get the formated date. Example: > > > $created_at = new DateTime($result->created_at); > $created_at = $created_at->format("Y-m-d"); > echo $created_at.' - '; > > Questions: > > 1) how to get the time like "hh:mm

[twitter-dev] Date and Time from created_at fromTwitter API in PHP

2010-05-22 Thread giustin
Hi, In PHP, I can get the formated date. Example: $created_at = new DateTime($result->created_at); $created_at = $created_at->format("Y-m-d"); echo $created_at.' - '; Questions: 1) how to get the time like "hh:mm:ss" from the result->created_at? 2) how to get the time in a specified time-zone