hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : PEAR::Date Queries
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

PEAR::Date Queries

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-09-2005, 07:23 AM
qledge qledge is offline
Newbie
 
Join Date: Jun 2005
Posts: 10

PEAR::Date Queries


I want to convert my system time into different time zones, example code:

<?php
require_once 'Date.php';
$date_format = "%a %d %b %y, %H:%M";
$date= new Date();
print "My Local Time";
print $date->format($date_format);
$ld_tz= new Date_Timezone("Europe/London");
$date->convertTZ($ld_tz);
print "London Time is ";
$date->format($date_format);
print $date->format($date_format);
?>

Example:
My expected output for London Time:
Sat 09 Jul 05, 12:19

My Output
Sat 09 Jul 05, 07:16

Anyone knows why or run into similar problems before?

Thanks.

Reply With Quote


Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Database as a Service Provider Cloudant Joins Open Geospatial Consortium Web Hosting News 2013-01-08 15:47:58
Google Launches Analytics Tool, Study Shows Firms Favor Cloud Providers for Big Data Needs Web Hosting News 2012-05-02 12:09:31
Microsoft Offers Details on Leap Day Azure Outage, Compensates Customers Web Hosting News 2012-03-12 13:17:57
More than 4,000 Students Get Hurricane Electric IPv6 Certification Web Hosting News 2012-01-27 13:55:09
Case Study: Verisign Looks at the Rise in DDoS Attacks Web Hosting News 2011-08-31 15:06:58


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?