cvs: presentations / time-qc2006.xml /slides/time date-format-locale.xml sun-up-down.xml when.xml
| From: | Derick Rethans | Date: | Sat, 22 Apr 2006 10:24:54 +0000 |
| Subject: | cvs: presentations / time-qc2006.xml /slides/time date-format-locale.xml sun-up-down.xml when.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1295@lists.php.net to get a copy of this message | ||
derick Sat Apr 22 10:24:54 2006 UTC
Added files:
/presentations/slides/time date-format-locale.xml sun-up-down.xml
when.xml
Modified files:
/presentations time-qc2006.xml
Log:
- Added missing slides for time presentation
http://cvs.php.net/viewcvs.cgi/presentations/time-qc2006.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/time-qc2006.xml
diff -u presentations/time-qc2006.xml:1.1 presentations/time-qc2006.xml:1.2
--- presentations/time-qc2006.xml:1.1 Thu Mar 30 17:07:16 2006
+++ presentations/time-qc2006.xml Sat Apr 22 10:24:54 2006
@@ -43,6 +43,7 @@
<!-- DATE EXAMPLES -->
<slide>slides/time/date-format.xml</slide>
+<slide>slides/time/date-format-locale.xml</slide>
<slide>slides/time/date-modify.xml</slide>
<slide>slides/time/basic-using-zones.xml</slide>
<slide>slides/time/default-timezone.xml</slide>
@@ -55,6 +56,8 @@
<!-- TIPS -->
<slide>slides/time/timezone-tips.xml</slide>
+<slide>slides/time/sun-up-down.xml</slide>
+<slide>slides/time/when.xml</slide>
<!-- EXIT -->
<slide>slides/time/resources.xml</slide> <!-- resources -->
http://cvs.php.net/viewcvs.cgi/presentations/slides/time/date-format-locale.xml?view=markup&rev=1.1
Index: presentations/slides/time/date-format-locale.xml
+++ presentations/slides/time/date-format-locale.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<slide>
<title>Formatting Dates - Locale Aware</title>
<subtitle>Locales with PHP 6</subtitle>
<example result="1"><![CDATA[<?php
date_default_timezone_set("Europe/Oslo");
$ts = date_create("December 22nd, 2005 15:41");
$locales = array('en_US', 'fr_CA', 'nb_NO', 'ru_RU',
'ar_SA', 'ja_JP');
foreach ($locales as $locale) {
i18n_loc_set_default($locale);
echo date_format_locale($ts, DATE_RFC1036), "<br/>\n";
}
?>]]></example>
</slide>
http://cvs.php.net/viewcvs.cgi/presentations/slides/time/sun-up-down.xml?view=markup&rev=1.1
Index: presentations/slides/time/sun-up-down.xml
+++ presentations/slides/time/sun-up-down.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<slide>
<title>Sunset/Sunrise</title>
<example result="1"><![CDATA[<?php
date_default_timezone_set('America/Montreal');
if (isset($_POST['country'])) {
$client = new SoapClient('http://geo.derickrethans.nl/geo.wsdl');
$info = $client->Location($_POST['country'], $_POST['city']);
$lat = $info['lat']; $lon = $info['lon'];
$info = date_sun_info(time(), $lon, $lat);
echo "Sunrise is at ", date(date::ATOM, $info['sunrise']),
"<br/>";
echo "Sunset is at ", date(date::RSS, $info['sunset']),
"<br/><hr/>";
}
?>
<form method="post">
Country: <input name="country"/> City: <input
name="city"/><br/>
<input type="submit" value="Check"/>
</form>
]]></example>
</slide>
http://cvs.php.net/viewcvs.cgi/presentations/slides/time/when.xml?view=markup&rev=1.1
Index: presentations/slides/time/when.xml
+++ presentations/slides/time/when.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<slide>
<title>When Is The Additional Functionality Available</title>
<list>
<bullet>In PHP 5.1 if you compile PHP with a special flag</bullet>
<bullet>In PHP 5.2 by default</bullet>
</list>
<break/>
<blurb>Compile like:</blurb>
<example>CFLAGS=-DEXPERIMENTAL_DATE_SUPPORT=1 ./configure</example>
</slide>