Re: How do I get the local date & time

From: Date: Thu, 04 Jan 2001 23:57:42 +0000
Subject: Re: How do I get the local date & time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32773@lists.php.net to get a copy of this message
$time_offset = date("Z"); echo "$time_offset"; Will give you the time zone offset in number of seconds (-43200 to 43200) From there I'm guessing it would be a question of mathematics. Though I am still completely new to all this ;) > I have a problem! > > I am trying to print to the browser the current date and time. The problem > is, I am in New Zealand and the ISP i use is in USA. > > So when the time appears i get.. > eg: > > Lets say it si 5/1/00 at 10:45am in NZ > When printed I get 4/1/00 13:45 > > Is there a php command like in javascript to get the date from client > machine instead of the server? > > Thanks, > > Chris > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#32773) next »