com presentations: ConFoo/DateTime talk: slides/mongodb/me.xml slides/time/date-modify.xml slides/time/in-database4.xml slides/time/intervals.xml slides/time/period-2.xml slides/time/timezone-utilities-3.xml time-confoo19.xml

[email protected] (Derick Rethans) Thu, 07 Mar 2019 15:14:04 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    fbdb93d9815c1a48daa0445c9394ac9d48329580
Author:    Derick Rethans <[email protected]>         Thu, 7 Mar 2019 15:14:04 +0000
Parents:   0e8489df4f8012ce30890f2b9873695edf632970
Branches:  master

Link:       http://git.php.net/?p=presentations.git;a=commitdiff;h=fbdb93d9815c1a48daa0445c9394ac9d48329580

Log:
ConFoo/DateTime talk

Changed paths:
  M  slides/mongodb/me.xml
  M  slides/time/date-modify.xml
  M  slides/time/in-database4.xml
  M  slides/time/intervals.xml
  M  slides/time/period-2.xml
  M  slides/time/timezone-utilities-3.xml
  A  time-confoo19.xml


Diff:
diff --git a/slides/mongodb/me.xml b/slides/mongodb/me.xml
index 6717689..448be72 100644
--- a/slides/mongodb/me.xml
+++ b/slides/mongodb/me.xml
@@ -7,7 +7,7 @@
 	<blurb>Derick Rethans</blurb>
 	<list>
 		<bullet>I'm European, living in London</bullet>
-		<bullet>I work on the *MongoDB* PHP driver</bullet>
+		<bullet>I work on *PHP things*</bullet>
 		<bullet>*Xdebug* &amp; PHP's Date/Time support</bullet>
 		<bullet>I ♥🌍 maps, I ♥🍺 beer, I ♥🥃  whisky</bullet>
 		<bullet>twitter: @derickr</bullet>
diff --git a/slides/time/date-modify.xml b/slides/time/date-modify.xml
index ae8229f..64cd645 100644
--- a/slides/time/date-modify.xml
+++ b/slides/time/date-modify.xml
@@ -14,7 +14,7 @@
 ?>]]></example>
 
 <blurb>Result:</blurb>
-  <blurb class='pre'>   Mon, 08 Mar 2010 15:53:55 +0000</blurb>
+  <blurb class='pre'>   Mon, 17 Mar 2018 15:53:55 +0000</blurb>
 
   <blurb effect="fade-in" class='pre'>   |ef2929|Mon, 19 Mar| 2018 15:53:55 +0000</blurb>
   <blurb effect="fade-in" class='pre'>   |ef2929|Fri, 13 Apr| 2018 00:00:00 |ef2929|+0100|</blurb>
diff --git a/slides/time/in-database4.xml b/slides/time/in-database4.xml
index 0d22e00..ad30c2e 100644
--- a/slides/time/in-database4.xml
+++ b/slides/time/in-database4.xml
@@ -3,7 +3,7 @@
 <subtitle>Summary</subtitle>
 
 <blurb>If you want to store a time for an appointment for a group of people
-all in different timezones-ie, store a *specific point in time*:</blurb>
+all in different timezones—store a *specific point in time*:</blurb>
 <example><![CDATA[{
 	'title' : 'Meeting about getting rid of Daylight Saving Time',
 	'time' : { 
diff --git a/slides/time/intervals.xml b/slides/time/intervals.xml
index cc32abd..ccc6c49 100644
--- a/slides/time/intervals.xml
+++ b/slides/time/intervals.xml
@@ -12,7 +12,7 @@ $i = new DateInterval( 'P3DT6H' );
 
 // from a difference
 $d1 = new DateTimeImmutable();
-$d2 = new DateTimeImmutable( "2018-04-21 11:00 Europe/London" );
+$d2 = new DateTimeImmutable( "2019-03-29 23:00 Europe/London" );
 $i = $d1->diff( $d2 );
 
 // displaying the difference
diff --git a/slides/time/period-2.xml b/slides/time/period-2.xml
index b89277f..daa5ce5 100644
--- a/slides/time/period-2.xml
+++ b/slides/time/period-2.xml
@@ -4,8 +4,8 @@
 	<subtitle>Iterating over a period</subtitle>
 
 	<example result="1"><![CDATA[<?php
-$db = new DateTimeImmutable( '2017-12-31' );
-$de = new DateTimeImmutable( '2018-12-31' );
+$db = new DateTimeImmutable( '2018-12-31' );
+$de = new DateTimeImmutable( '2019-12-31' );
 $di = DateInterval::createFromDateString(
 	'first thursday of next month'
 );
diff --git a/slides/time/timezone-utilities-3.xml b/slides/time/timezone-utilities-3.xml
index cc048d6..c4739d5 100644
--- a/slides/time/timezone-utilities-3.xml
+++ b/slides/time/timezone-utilities-3.xml
@@ -12,7 +12,7 @@
 
   <blurb>Restrict by country:</blurb>
   <example result="1"><![CDATA[<?php
-  $ids = timezone_identifiers_list( DateTimeZone::PER_COUNTRY, 'US' );
+  $ids = timezone_identifiers_list( DateTimeZone::PER_COUNTRY, 'CA' );
   echo implode( ", ", $ids );
 ?>]]></example>
 </slide>
diff --git a/time-confoo19.xml b/time-confoo19.xml
new file mode 100644
index 0000000..0b58f0c
--- /dev/null
+++ b/time-confoo19.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation css="derick.css">
+<topic>Localization and Internationalization</topic>
+<title>Time Zones and Calendars are a PITA</title>
+<event>ConFoo</event>
+<location>Montréal, Canada</location>
+<date>March 14, 2019</date>
+<speaker>Derick Rethans</speaker>
+<email>[email protected]</email>
+<url>http://derickrethans.nl/talks.html</url>
+<joindin></joindin>
+<twitter>derickr</twitter>
+
+<slide>slides/mongodb/title.xml</slide>
+<slide>slides/mongodb/me.xml</slide>
+
+<!-- INTRODUCTION -->
+<slide>slides/time/quiz.xml</slide>
+
+<!-- PHP - IMPROVEMENTS -->
+<slide>slides/time/improvements-timezones.xml</slide>
+<slide>slides/time/improvements-more-on-timezones.xml</slide>
+<slide>slides/time/default-timezone.xml</slide>
+<slide>slides/time/timestamps-suck.xml</slide>
+
+<!-- PHP - CODE EXAMPLES -->
+<slide>slides/time/basic-parse-time-new.xml</slide>
+<slide>slides/time/date-parse2.xml</slide>
+<slide>slides/time/date-parse-from-format3.xml</slide>
+<slide>slides/time/date-parse-from-format2.xml</slide>
+
+<!-- DATE EXAMPLES -->
+<slide>slides/time/date-modify.xml</slide>
+<slide>slides/time/date-modify-immutable1.xml</slide>
+<slide>slides/time/date-modify-immutable2.xml</slide>
+<slide>slides/time/timezone-object-1.xml</slide>
+<slide>slides/time/date-timezone.xml</slide>
+<slide>slides/time/timezone-utilities-3.xml</slide>
+
+<!-- INTERVALS and PERIODS -->
+<slide>slides/time/intervals.xml</slide>
+<slide>slides/time/intervals-2.xml</slide>
+<slide>slides/time/relative-month.xml</slide>
+<slide>slides/time/relative-month3.xml</slide>
+<slide>slides/time/period-2.xml</slide>
+
+<!-- STORING in DATABASE -->
+<!-- OLD:
+<slide>slides/time/in-database1.xml</slide>
+<slide>slides/time/in-database2.xml</slide>
+<slide>slides/time/in-database3.xml</slide>
+-->
+<slide>slides/time/in-database4.xml</slide>
+<slide>slides/time/in-mdb1.xml</slide>
+
+<!-- CALENDARS -->
+
+<!-- EXIT -->
+<slide>slides/time/book.xml</slide> <!-- resources -->
+<slide>slides/mongodb/questions.xml</slide>
+<slide>slides/mongodb/resources.xml</slide> <!-- resources -->
+</presentation>