PHPCodez

Search
Skip to content
  • PHP
  • Magento
  • Javascript
  • HTML
  • My SQL
  • Functions
  • WordPress
  • Plugins
  • Joomla
  • Linux
  • jQuery
  • Profile
  • comments
PHP

date_timezone_get

April 25, 2012 Pramod T P
Its an alias of DateTime::getTimezone()and  returns time zone relative to given DateTime
Example

<?php
$date1 = date_create(null, timezone_open(‘Asia/Calcutta’));
$timezone = date_timezone_get($date1);
echo timezone_name_get($timezone);
?>

Output

Asia/Calcutta

DateFunctionsPHPTimeTimezone

Post navigation

Previous PostDateTime::getTimezoneNext PostDateTime::setTimezone

Beginners' Guide

Recent Posts

  • Constructor Property Promotion
  • Named Arguments
  • Customer Attributes
  • Payment Method Facade
  • Content Staging
  • AMQP Components
  • AMQP
  • Last Day Of The Month PHP
  • PHP Previous Date

Recent Comments

  • سجّل الآن واحصل على 100 USDT on Escape Output
  • Binance Cadastro on Magento 2 Remove Header
  • 파워볼사이트 on XAMP Change Localhost To Domain
  • google on Include a block in sidebar – Magento
  • moving company los angeles on Include a block in sidebar – Magento

Categories

  • .htaccess (32)
  • Ajax (4)
  • Apache (43)
  • AWS (11)
  • Cookie (4)
  • Database Model (9)
  • Design Pattern (9)
  • Filter (27)
  • General (186)
  • HTML (5)
  • IP.Board (1)
  • Javascript (99)
  • Jetty (3)
  • Joomla (17)
  • jQuery (63)
  • JSON (3)
  • JSP (1)
  • Linux (121)
  • Magento (366)
  • My SQL (74)
  • nginx (4)
  • OOPs (12)
  • Payment Gateway (1)
  • PHP (996)
  • Plugins (11)
  • Prototype (1)
  • session (5)
  • Socialengine (1)
  • SQL (69)
  • SVN (17)
  • Uncategorized (11)
  • Vbulletin (11)
  • Wordpress (89)
Proudly powered by WordPress