svn: /web/presentations/trunk/ slides/time/clueless.png slides/time/date-modify.xml slides/time/date-modify2.xml slides/time/date-time-in-52.xml
slides/time/problems-clueless.xml slides/time/problems-condensed.xml slides/time/timezone-utilities-3.xml time-tek10.xml

From: Date: Mon, 10 May 2010 09:37:00 +0000
Subject: svn: /web/presentations/trunk/ slides/time/clueless.png slides/time/date-modify.xml slides/time/date-modify2.xml slides/time/date-time-in-52.xml
slides/time/problems-clueless.xml slides/time/problems-condensed.xml slides/time/timezone-utilities-3.xml time-tek10.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1635@lists.php.net to get a copy of this message
derick Mon, 10 May 2010 09:37:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=299203 Log: - Added my Tek X Date/Time talk. Changed paths: A web/presentations/trunk/slides/time/clueless.png U web/presentations/trunk/slides/time/date-modify.xml U web/presentations/trunk/slides/time/date-modify2.xml A web/presentations/trunk/slides/time/date-time-in-52.xml A web/presentations/trunk/slides/time/problems-clueless.xml A web/presentations/trunk/slides/time/problems-condensed.xml U web/presentations/trunk/slides/time/timezone-utilities-3.xml A web/presentations/trunk/time-tek10.xml Added: web/presentations/trunk/slides/time/clueless.png =================================================================== (Binary files differ) Property changes on: web/presentations/trunk/slides/time/clueless.png ___________________________________________________________________ Added: svn:mime-type + image/png Modified: web/presentations/trunk/slides/time/date-modify.xml =================================================================== --- web/presentations/trunk/slides/time/date-modify.xml 2010-05-10 07:58:16 UTC (rev 299202) +++ web/presentations/trunk/slides/time/date-modify.xml 2010-05-10 09:37:00 UTC (rev 299203) @@ -6,16 +6,12 @@ <example result="0"><![CDATA[<?php date_default_timezone_set("Europe/London"); $ts = new DateTime("2010-03-08 15:53:55"); - echo $ts->format(DATE_RFC2822), "<br/>\n"; $ts->modify("+2 days"); - echo $ts->format(DATE_RFC2822), "<br/>\n"; $ts->modify("Friday +3 weeks"); - echo $ts->format(DATE_RFC2822), "<br/>\n"; $ts->modify("next friday"); - echo $ts->format(DATE_RFC2822), "<br/>\n"; ?>]]></example> <break/> Modified: web/presentations/trunk/slides/time/date-modify2.xml =================================================================== --- web/presentations/trunk/slides/time/date-modify2.xml 2010-05-10 07:58:16 UTC (rev 299202) +++ web/presentations/trunk/slides/time/date-modify2.xml 2010-05-10 09:37:00 UTC (rev 299203) @@ -4,19 +4,11 @@ <example result="0"><![CDATA[<?php $date = new DateTime( '2010-03-08 15:48:21' ); - echo $date->format(DateTime::ISO8601), "<br/>\n"; $date->setTime( 15, 0, 7 ); - echo $date->format(DateTime::ISO8601), "<br/>\n"; - $date->setDate( 2008, 07, 22 ); - echo $date->format(DateTime::ISO8601), "<br/>\n"; - - echo $date->setIsoDate( 2008, 45, 2 )->format(DateTime::ISO8601), "<br/>\n"; - - // new in PHP 5.3: + $date->setIsoDate( 2008, 45, 2 ); $date->setTimestamp( 1200128314 ); - echo $date->format(DateTime::ISO8601), "<br/>\n"; ?>]]></example> <break/> Added: web/presentations/trunk/slides/time/date-time-in-52.xml =================================================================== --- web/presentations/trunk/slides/time/date-time-in-52.xml (rev 0) +++ web/presentations/trunk/slides/time/date-time-in-52.xml 2010-05-10 09:37:00 UTC (rev 299203) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide> + <title>Date/Time Functions in PHP</title> + + <list> + <bullet>Internally, a 64 bit signed integer is used to store the number + of seconds since the epoch</bullet> + <bullet>~strtotime()~ and functions dealing with timestamps have been + replaced with classes (such as ~new DateTime()~)</bullet> + <bullet>Nothing is Operating System dependent</bullet> + <bullet>Full support for timezones, DST, date modifications</bullet> + <bullet>Advanced date handling functions</bullet> + </list> +</slide> + Added: web/presentations/trunk/slides/time/problems-clueless.xml =================================================================== --- web/presentations/trunk/slides/time/problems-clueless.xml (rev 0) +++ web/presentations/trunk/slides/time/problems-clueless.xml 2010-05-10 09:37:00 UTC (rev 299203) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide template="white"> + <title>Problems</title> + + <image align="center" filename="clueless.png" /> +</slide> Added: web/presentations/trunk/slides/time/problems-condensed.xml =================================================================== --- web/presentations/trunk/slides/time/problems-condensed.xml (rev 0) +++ web/presentations/trunk/slides/time/problems-condensed.xml 2010-05-10 09:37:00 UTC (rev 299203) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<slide> + <title>Problems</title> + <subtitle>Timezones</subtitle> + + <image align="center" filename="zones.png" pdf-scale="0.8" /> + + <list> + <bullet>Most places have whole-hour timezone offsets</bullet> + <bullet>Some places change timezones during the year</bullet> + <bullet>One identifier can mean different zones:<br /> + PST: *P*acific *S*tandard *T*ime, *P*akistan *S*tandard *T*ime<br /> + EST: *E*astern *S*tandard *T*ime (USA), *E*astern *S*tandard *T*ime (Australia) and *E*astern Brazil *S*tandard *T*ime</bullet> + </list> +</slide> Modified: web/presentations/trunk/slides/time/timezone-utilities-3.xml =================================================================== --- web/presentations/trunk/slides/time/timezone-utilities-3.xml 2010-05-10 07:58:16 UTC (rev 299202) +++ web/presentations/trunk/slides/time/timezone-utilities-3.xml 2010-05-10 09:37:00 UTC (rev 299203) @@ -6,13 +6,13 @@ <blurb>Restrict by continent:</blurb> <example result="1"><![CDATA[<?php $ids = timezone_identifiers_list( DateTimeZone::EUROPE ); - echo implode(", ", array_slice($ids, 0, 5)), '...'; + echo implode( ", ", $ids ); ?>]]></example> <break/> <blurb>Restrict by country:</blurb> <example result="1"><![CDATA[<?php - $ids = timezone_identifiers_list( DateTimeZone::PER_COUNTRY, 'CA' ); - echo implode(", ", array_slice($ids, 0, 10)), '...'; + $ids = timezone_identifiers_list( DateTimeZone::PER_COUNTRY, 'US' ); + echo implode( ", ", $ids ); ?>]]></example> </slide> Added: web/presentations/trunk/time-tek10.xml =================================================================== --- web/presentations/trunk/time-tek10.xml (rev 0) +++ web/presentations/trunk/time-tek10.xml 2010-05-10 09:37:00 UTC (rev 299203) @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<presentation + template="css" + navmode="html" + navbarbackground="#4373b4" + navbartopiclinks="0" + navColor="#f1fbff" + logo1="" + stylesheet="presentations/slides/dbus/dbus.css" + backgroundfixed="1" > +<topic>Localization and Internationalization</topic> +<title>Advanced Date/Time Handling</title> +<event>Tek X</event> +<location>Chicago, US</location> +<date>May 19th, 2010</date> +<speaker>Derick Rethans</speaker> +<email>derick@php.net</email> +<url>http://derickrethans.nl/talks.html</url> +<joindin>http://joind.in/1589</joindin> +<twitter>derickr</twitter> + +<slide>slides/dbus/title.xml</slide> +<slide>slides/toolbox/me.xml</slide> + +<!-- INTRODUCTION --> +<slide>slides/time/problems-condensed.xml</slide> +<slide>slides/time/problems-clueless.xml</slide> + +<!-- PHP - IMPROVEMENTS --> +<slide>slides/time/date-time-in-52.xml</slide> +<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-format.xml</slide> +<slide>slides/time/date-modify2.xml</slide> +<slide>slides/time/date-modify.xml</slide> +<slide>slides/time/timezone-object-1.xml</slide> +<slide>slides/time/timezone-object-2.xml</slide> +<slide>slides/time/date-timezone.xml</slide> +<slide>slides/time/timezone-utilities-1.xml</slide> +<slide>slides/time/timezone-utilities-2.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/relative1.xml</slide> +<slide>slides/time/relative2.xml</slide> +<slide>slides/time/relative-month.xml</slide> +<slide>slides/time/relative-month2.xml</slide> +<slide>slides/time/relative-month3.xml</slide> +<slide>slides/time/relative-month4.xml</slide> +<slide>slides/time/period-1.xml</slide> +<slide>slides/time/period-2.xml</slide> + +<slide>slides/time/user-timezone.xml</slide> +<slide>slides/time/sun-up-down.xml</slide> + +<!-- EXIT --> +<slide>slides/time/book.xml</slide> <!-- resources --> +<slide>slides/time/resources.xml</slide> <!-- resources --> +</presentation>

« previous php.pres (#1635) next »