DPC2019: Time Zones and Calendars are a PITA - Derick Rethans

Published: 16 June 2019
on channel: Ibuildings Dutch PHP Conference
210
4

"Time Zones and Calendars are a PITA by Derick Rethans

Time Zones and Calendars are a PITA. Although they govern how we live and when we do what, handling them programmatically is not an easy feat.

In this presentation we will look at how to deal with time zones, and two calendars: natural year, and ISO8601. We will see how it is hard to make assumptions on how they work, and explain how they came into existence. We'll focus mostly on how to handle them from within PHP, as well as how we (should) store them in databases. We'll also have a quick look at date manipulation when querying data.

What you'll learn from this talk:


That dealing with time zones is always harder than you think it is
Practical ways on how to deal with time zones correctly in PHP
How to use (some of) PHP's Date/Time features
How to store date/time information



About Derick Rethans

He has contributed in a number of ways to the PHP project, including the Xdebug debugging tool, and various extensions and additions. He's a frequent lecturer at conferences, the author of php|architect's Guide to Date and Time Programming, and the co-author of PHP 5 Power Programming. He works as an independent contractor and consultant on PHP extensions and related projects, including Xdebug.


This talk was given at the Dutch PHP Conference in 2019, organised and hosted by Ibuildings. Visit https://phpconference.nl or https://www.ibuildings.nl for more information."