com presentations: ZendCon date/time talk.: slides/time/date-modify-immutable1.xml slides/time/date-modify-immutable2.xml slides/time/period-2.xml slides/time/relative-month.xml slides/time/relative-month3.xml slides/time/timestamps-suck.xml time-zendcon14.xml

[email protected] (Derick Rethans)
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    e268911f6c942b70b5082c21d0feed9783667f51
Author:    Derick Rethans <[email protected]>         Wed, 15 Oct 2014 13:00:14 +0100
Parents:   51f14501829dee3ad58f9df7fb84e38d52977530
Branches:  master

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

Log:
ZendCon date/time talk.

Changed paths:
  M  slides/time/date-modify-immutable1.xml
  M  slides/time/date-modify-immutable2.xml
  M  slides/time/period-2.xml
  M  slides/time/relative-month.xml
  M  slides/time/relative-month3.xml
  M  slides/time/timestamps-suck.xml
  A  time-zendcon14.xml


Diff:
diff --git a/slides/time/date-modify-immutable1.xml b/slides/time/date-modify-immutable1.xml
index 63baf93..2c63a77 100644
--- a/slides/time/date-modify-immutable1.xml
+++ b/slides/time/date-modify-immutable1.xml
@@ -4,9 +4,9 @@
 
 	<blurb>Standard:</blurb>
   <example result="1"><![CDATA[<?php
-  $ts = new DateTime("2010-03-08 15:53:55");
+  $ts = new DateTime("2014-03-08 15:53:55");
   $new = $ts->modify("+2 days");
-  echo $ts->format(DateTime::RFC822), "\n";
-  echo $new->format(DateTime::RFC822), "\n";
+  echo $ts->format(DateTime::RFC2822), "\n";
+  echo $new->format(DateTime::RFC2822), "\n";
 ?>]]></example>
 </slide>
diff --git a/slides/time/date-modify-immutable2.xml b/slides/time/date-modify-immutable2.xml
index d549490..b0439b0 100644
--- a/slides/time/date-modify-immutable2.xml
+++ b/slides/time/date-modify-immutable2.xml
@@ -4,9 +4,9 @@
 
 	<blurb>Immutable (new in PHP 5.5):</blurb>
   <example result="1"><![CDATA[<?php
-  $ts = new DateTimeImmutable("2010-03-08 15:53:55");
+  $ts = new DateTimeImmutable("2014-03-08 15:53:55");
   $new = $ts->modify("+2 days");
-  echo $ts->format(DateTime::RFC822), "\n";
-  echo $new->format(DateTime::RFC822), "\n";
+  echo $ts->format(DateTime::RFC2822), "\n";
+  echo $new->format(DateTime::RFC2822), "\n";
 ?>]]></example>
 </slide>
diff --git a/slides/time/period-2.xml b/slides/time/period-2.xml
index a1bfb55..ed25904 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( '2008-12-31' );
-$de = new DateTimeImmutable( '2009-12-31' );
+$db = new DateTimeImmutable( '2013-12-31' );
+$de = new DateTimeImmutable( '2014-12-31' );
 $di = DateInterval::createFromDateString(
 	'third tuesday of next month'
 );
diff --git a/slides/time/relative-month.xml b/slides/time/relative-month.xml
index 6b8657b..ee5fddf 100644
--- a/slides/time/relative-month.xml
+++ b/slides/time/relative-month.xml
@@ -4,18 +4,18 @@
 	<subtitle>"previous month" / "next month"</subtitle>
 
 	<example result="1"><![CDATA[<?php
-  $date = new DateTimeImmutable( '2010-01-31 15:48:21' );
+  $date = new DateTimeImmutable( '2014-01-31 15:48:21' );
   echo $date->modify( 'next month' )->format( 'Y-m-d' ), "\n";
 ?>]]></example>
 <break/>
 
 <div effect="hide">
 <blurb>Explanation:</blurb>
-	<blurb effect="fade-out"    class='pre'>   2010-01-31 15:48:21</blurb>
-	<blurb effect="fade-in-out" class='pre'>   2010-|ef2929|02|-31 15:48:21
+	<blurb effect="fade-out"    class='pre'>   2014-01-31 15:48:21</blurb>
+	<blurb effect="fade-in-out" class='pre'>   2014-|ef2929|02|-31 15:48:21
    
    "next month" increases month number by 1</blurb>
-	<blurb effect="fade-in"     class='pre'>   2010-|ef2929|03-03| 15:48:21
+	<blurb effect="fade-in"     class='pre'>   2014-|ef2929|03-03| 15:48:21
 
    February only has 28 days, so days are overflown
    into the next month</blurb>
diff --git a/slides/time/relative-month3.xml b/slides/time/relative-month3.xml
index 2279b18..7842923 100644
--- a/slides/time/relative-month3.xml
+++ b/slides/time/relative-month3.xml
@@ -4,18 +4,18 @@
 	<subtitle>"first day *of* next month"</subtitle>
 
 	<example result="1"><![CDATA[<?php
-  $date = new DateTimeImmutable( '2010-01-31 15:48:21' );
+  $date = new DateTimeImmutable( '2014-01-31 15:48:21' );
   echo $date->modify( 'first day of next month' )->format( 'Y-m-d' ), "\n";
 ?>]]></example>
 <break/>
 
 <div effect="hide">
 <blurb>Explanation:</blurb>
-	<blurb effect="fade-out"    class='pre'>   2010-01-31 15:48:21</blurb>
-	<blurb effect="fade-in-out" class='pre'>   2010-|ef2929|02|-31 15:48:21
+	<blurb effect="fade-out"    class='pre'>   2014-01-31 15:48:21</blurb>
+	<blurb effect="fade-in-out" class='pre'>   2014-|ef2929|02|-31 15:48:21
    
    "next month" increases month number by 1</blurb>
-	<blurb effect="fade-in"     class='pre'>   2010-02-|ef2929|01| 15:48:21
+	<blurb effect="fade-in"     class='pre'>   2014-02-|ef2929|01| 15:48:21
 
    "first day of" resets the day number to 1</blurb>
 </div>
diff --git a/slides/time/timestamps-suck.xml b/slides/time/timestamps-suck.xml
index 68feb59..263cf84 100644
--- a/slides/time/timestamps-suck.xml
+++ b/slides/time/timestamps-suck.xml
@@ -3,17 +3,17 @@
 	<title>Unix timestamps and timezones</title>
 
 	<example result="1"><![CDATA[<?php
-  $date = strtotime( '2010-03-07 20:48:21 America/Toronto' );
+  $date = strtotime( '2014-03-07 20:48:21 America/Toronto' );
   echo date( 'Y-m-d', $date ), "\n";
 ?>]]></example>
 
 <div effect="hide">
 <blurb>Explanation:</blurb>
-	<blurb                 >%$d = strtotime('2010-03-07 20:48 America/Toronto');%</blurb>
-	<blurb effect="fade-in">%$d = |ef2929|1268012901|; // string is turned into a number%</blurb>
-	<blurb effect="fade-in">%echo date('Y-m-d', 1268012901), "\n";%</blurb>
+	<blurb                 >%$d = strtotime('2014-03-07 20:48 America/Toronto');%</blurb>
+	<blurb effect="fade-in">%$d = |ef2929|1394243280|; // string is turned into a number%</blurb>
+	<blurb effect="fade-in">%echo date('Y-m-d', 1394243280), "\n";%</blurb>
 	<blurb effect="fade-in">Number is converted to a date/time string using the *default* timezone:<br/>
-	%"2010-03-08" |555753|(01:48:21 Europe/London)|%</blurb>
+	%"2014-03-08" |555753|(01:48:21 Europe/London)|%</blurb>
 </div>
 
 </slide>
diff --git a/time-zendcon14.xml b/time-zendcon14.xml
new file mode 100644
index 0000000..5e87bcd
--- /dev/null
+++ b/time-zendcon14.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<presentation css="10gen-strict.css">
+<topic>Localization and Internationalization</topic>
+<title>Advanced Date&amp;Time Handling</title>
+<event>ZendCon 2014</event>
+<location>Santa Clara, CA, US</location>
+<date>October 28th, 2014</date>
+<speaker>Derick Rethans</speaker>
+<email>[email protected]</email>
+<url>http://derickrethans.nl/talks.html</url>
+<joindin>http://joind.in/11998</joindin>
+<twitter>derickr</twitter>
+
+<slide>slides/mongodb/title.xml</slide>
+<slide>slides/mongodb/me.xml</slide>
+
+<!-- INTRODUCTION -->
+<slide>slides/time/problems-condensed.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 -->
+<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>
+
+<!-- EXIT -->
+<slide>slides/time/book.xml</slide> <!-- resources -->
+<slide>slides/mongodb/resources.xml</slide> <!-- resources -->
+</presentation>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.