downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

date_parse_from_format> <date_modify
[edit] Last updated: Fri, 23 Mar 2012

view this page in

date_offset_get

(PHP 5 >= 5.2.0)

date_offset_get DateTime::getOffset() işlevinin takma adıdır

Açıklama

Bu işlev, DateTime::getOffset() işlevinin takma adıdır.



add a note add a note User Contributed Notes date_offset_get
Kae Cyphet 11-Oct-2010 02:43
The following gets the timezone of the server including daylight savings time changes.

<?php
$seconds
= date_offset_get(new DateTime);
print
$seconds / 3600;
// returns pos/neg decimal (eg. -7 if in PST and DST is active.)
// remember there are time zones with 30 and 45 min offsets
// http://en.wikipedia.org/wiki/Time_zone
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites