P. 1
SQLITE Php Pdo Referance

SQLITE Php Pdo Referance

|Views: 797|Likes:
Published by jwzumwalt
SQLite Reference - Using PHP & PDO
SQLite Reference - Using PHP & PDO

More info:

Published by: jwzumwalt on Mar 02, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/26/2015

pdf

text

original

If the time zone is not set, PHP will report an error if “report all warnings” is enabled.

date_default_timezone_set(date_default_timezone_get()); // default server timezone

or

date_default_timezone_set('Pacific/Honolulu'); // utc-10 hawaiian
date_default_timezone_set('America/Anchorage); // utc-9 pacific
date_default_timezone_set('America/Los_Angeles'); // utc-8 pacific
date_default_timezone_set('America/Denver'); // utc-7 mountain
date_default_timezone_set('America/Chicago'); // utc-6 central

ZoomAviation.com ‐ by Jan Zumwalt                                                                                                         Revised   August 25, 2015
SqLite Reference                                                                                                                                                 Copyright © 2005‐2015

Pg 57 of 84

date_default_timezone_set('America/New_York); // utc-5 eastern

A complete list of time zone codes is available at http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

The computation of local time depends heavily on the whim of politicians and is thus difficult to get correct for all locales.
In this implementation, the standard C library function localtime_r() is used to assist in the calculation of local time. The
localtime_r() C function normally only works for years between 1970 and 2037. For dates outside this range, SQLite
attempts to map the year into an equivalent year within this range, do the calculation, then map the year back.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->