Sponsored Content
Full Discussion: Event: DevMob 2010
Special Forums News, Links, Events and Announcements Event: DevMob 2010 Post 302389849 by Becky_Moblin on Tuesday 26th of January 2010 06:27:35 AM
Old 01-26-2010
Event: DevMob 2010

Register for Dev Mob 2010 - free London conference/barcamp giving developers interested in portable devices the opportunity to discuss their issues and find solutions.

If you would like to suggest or host a session (or just participate) on any kind of mobile development issue, please register at DevMob 2010 - Uniting mobile application developers in London

Event details:
3rd February 2010
10am-5pm
Science Museum, South Kensington, London
Registration is free and refreshments will be provided!

Plus: chance to win a netbook courtesy of ASUS (event sponsors)
 
DATETIME.GETTIMEZONE(3) 						 1						   DATETIME.GETTIMEZONE(3)

DateTime::getTimezone - Return time zone relative to given DateTime

       Object oriented style

SYNOPSIS
public DateTimeZone DateTime::getTimezone (void ) DESCRIPTION
DateTimeZone DateTimeImmutable::getTimezone (void ) DateTimeZone DateTimeInterface::getTimezone (void ) Procedural style DateTimeZone date_timezone_get (DateTimeInterface $object) Return time zone relative to given DateTime. PARAMETERS
o $object -Procedural style only: A DateTime object returned by date_create(3) RETURN VALUES
Returns a DateTimeZone object on success or FALSE on failure. EXAMPLES
Example #1 DateTime.getTimezone(3) example Object oriented style <?php $date = new DateTime(null, new DateTimeZone('Europe/London')); $tz = $date->getTimezone(); echo $tz->getName(); ?> Procedural style <?php $date = date_create(null, timezone_open('Europe/London')); $tz = date_timezone_get($date); echo timezone_name_get($tz); ?> The above examples will output: Europe/London SEE ALSO
DateTime.setTimezone(3). PHP Documentation Group DATETIME.GETTIMEZONE(3)
All times are GMT -4. The time now is 09:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy