Re: Can i use DateTime Object with an timestamp as referenceinstead of an formated string.
| From: | Mathijs | Date: | Wed, 14 Mar 2007 06:45:41 +0000 |
| Subject: | Re: Can i use DateTime Object with an timestamp as referenceinstead of an formated string. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250520@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
Personally, I'd log it in GMT or UTC or whatever it is, and then only change time-zones on display. Logging various different time-zones within the actualy data is just going to be confusing, probably... Depends on what you are doing, though, I guess... YMMV On Wed, March 7, 2007 7:12 am, Mathijs wrote:I use this for displaying and saving the right timestamp when a user enters a date/time. I Save it all as our global timestamp, so that shouldn't be a problem.Németh Zoltán wrote:2007. 03. 7, szerda keltezéssel 12.58-kor Mathijs ezt Ãrta:I hoped to avoid this. I Now i need an extra function call to get the right time. Hoped there was a way to give just the timestamp directly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpHello there, I Use timestamps for logging etc.. But i need this timestamp to let is show the right time in different timezones. Now i wanted to use DateTime object, but it seems it needs a string as reference, so i can't use a timestamp to re-generate that time. How can i fix this?I think http://hu2.php.net/manual/hu/function.strftime.php should be okay greets Zoltán NémethThx in advance.