<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/">

<channel>
<title>Date Time Code - Web Developer Tutorials</title>
<link>http://www.codewalkers.com</link>
<!-- PubSubHubbub Discovery -->
<link rel="hub"  href="http://devshednet.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
<link rel="self" href="http://www.codewalkers.com/rss-feeds-23.xml" xmlns="http://www.w3.org/2005/Atom" />
<!-- End Of PubSubHubbub Discovery -->
<atom:link href="http://www.codewalkers.com/rss-feeds-23.xml" rel="self"/>
<description>Date Time Code Tutorials at Code Walkers.  Code Walkers is a community focused on beginner, intermediate and advanced tutorials in PHP, MySQL, PECL and other Open Source Web technologies.</description>
<language>en-us</language>
<lastBuildDate>Sun, 19 May 2013 04:14:11 -0400</lastBuildDate>
<pubDate>Sun, 19 May 2013 04:14:11 -0400</pubDate>
<item><title>DaysInSpan.php</title>
<pubDate>Fri, 13 Oct 2006 02:49:26 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/DaysInSpanphp/</link>
		<description><![CDATA[Simple function to return the number of days in a time span between 2 given dates.

Arguments are long integers as returned by the standard php function mktime().
Arguments can be generated using mktime(), dateEStime(), or
dateAryEStime(mySQLdate2Ary()).

Example:
A simple illustrator to show how the function is used.

Change comment characters on lines indicated to use text code.
The test code can be used singly or multiply.]]></description>
		<content:encoded><![CDATA[By : dsilvia lt;?php /* * (c) 2006, D.E. Silvia, All rights reserved. * This code is available for use for non-commercial purposes. * Free to distribute as long as this copyright information remains intact. * No modification is authorized. Please, refer bugs/enhancements to * dsilvia@mchsi.com * */  /* * Simple function to return the number of days in a time span between 2 given dates. * * Arguments are long integers as returned by the standard php function mktime(). * Arguments can be generated using mktime(), dateEStime(), or * dateAryEStime(mySQLdate2Ary()). * * Example: * A simple illustra...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/DaysInSpanphp/</guid>
</item>
<item><title>MySQLdateSpan.php</title>
<pubDate>Fri, 13 Oct 2006 02:47:10 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/MySQLdateSpanphp/</link>
		<description><![CDATA[Simple conversion functions to change MySQL dates to arrays,
arrays to MySQL dates.

mySQLdateBetween() determines if a given date falls within a
given time span. Arguments are either arrays (as used by
DateSpan.php) or MySQL date strings.

Acts as MySQL layer to DateSpan.php]]></description>
		<content:encoded><![CDATA[By : dsilviaZip archive contains the functions code in MySQLdateSpan.php, a test script in testMySQLdateSpan.php, and a sql script for instantiating the test MySQL database.Click to Download File...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/MySQLdateSpanphp/</guid>
</item>
<item><title>DateSpan.php</title>
<pubDate>Fri, 13 Oct 2006 02:44:54 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/DateSpanphp/</link>
		<description><![CDATA[Simple function to check if a given date falls within a given time span.

Code contains a fully functional illustrative example. Just change the commenting as instructed in the file to run the example. It's a matter of changing a single character (from '/' to '*').

Useful for determining, say, if a date a user has entered falls during your vacation?;)]]></description>
		<content:encoded><![CDATA[By : dsilvia lt;?php /* * (c) 2006, D.E. Silvia, All rights reserved. * This code is available for use for non-commercial purposes. * Free to distribute as long as this copyright information remains intact. * No modification is authorized. Please, refer bugs/enhancements to * dsilvia@mchsi.com * */  /* * Simple function to check if a given date falls within a given time span. * * Arguments are arrays of the form array(dayNum,monthNum,yearNum) as recognized * by the standard php function mktime(). * * Example: * A simple illustrator to show how the functions are used. * * btw, ES|es stands for ...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/DateSpanphp/</guid>
</item>
<item><title>FutureDateFormEntry.php</title>
<pubDate>Thu, 12 Oct 2006 06:09:17 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/FutureDateFormEntryphp/</link>
		<description><![CDATA[PLEASE NOTE:

This is code to generate a selection entry form for a future date, not a
function to validate dates.

futureDateFormEntry():
Quick, easy addition of future date fields to HTML code using PHP.
Handy for requesting expiration dates, dates for delivery, dates for
appointments, or any web application that requires obtaining a future
date from the user.

validFutureDate():
Checks that entry is indeed a valid future date.


Code introduction comment contains a fully functional example for illustrative/testing purposes.

]]></description>
		<content:encoded><![CDATA[By : dsilvia lt;?php /* * (c) 2006, D.E. Silvia, All rights reserved. * This code is available for use for non-commercial purposes. * Free to distribute as long as this copyright information remains intact. * No modification is authorized. Please, refer bugs/enhancements to * dsilvia@mchsi.com * */ /* * futureDateFormEntry(): * Quick, easy addition of future date fields to HTML code using PHP. * Handy for requesting expiration dates, dates for delivery, dates for * appointments, or any web application that requires obtaining a future * date from the user. * * Function requires only 3 arguments...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/FutureDateFormEntryphp/</guid>
</item>
<item><title>Generate Time Option List for Select statement</title>
<pubDate>Sun, 07 Aug 2005 04:21:44 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Generate-Time-Option-List-for-Select-statement/</link>
		<description><![CDATA[I have a site that uses several start and end times and also various other times that have to be scheduled.  I needed to be able to narrow down the listing with start and end times.  I also wanted to be able to specify various time increments in minutes.  My last requirement was that I needed to be able to show what time was stored in the database by specifying the SELECTED attribute for the option statement.  

This is something I am posting to give back to this site as I have used it over and over to help me in a large project I am finalizing in the next week or so.]]></description>
		<content:encoded><![CDATA[By : fbnewtzfunction create_time_dropdown($start,$stop,$mininc,$hoursel,$minsel)   else if ($hour  gt;= '13'  amp; amp; $hour  lt;= '21')   else if ($hour  gt;= '22'  amp; amp; $hour  lt;= '23')   else    for ($min = 0; $min  lt;= 59; $min += $mininc)   else   } else   else   } } else   else   } else   else   } }  } } }...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Generate-Time-Option-List-for-Select-statement/</guid>
</item>
<item><title>Current Age Script (v2)</title>
<pubDate>Sat, 02 Jul 2005 06:47:29 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Current-Age-Script-v2/</link>
		<description><![CDATA[a sequel to my Current Age Script, now it supports up to the last minute. The new catch though, is it only supports times after the unix epoch, because the main function im using here is strtotime(). But there is a workaround to this though, you can avoid using strtotime by specifying the month, day, year, hour and minute in the variables.

This could well be used in forums, for tracking how long the user has been away, or how old the post is, and stuff like that. Hope you enjoy.

P.S.

The class.grammar.php is just a grammar library I wrote which is responsible for concatenating the letters 's' to the words 'month', 'day', etc.. if the number is greater than one. It should be available on the archive.]]></description>
		<content:encoded><![CDATA[By : voldomazta lt;?  // echo ts_date('June 23, 1988 06:55AM'); // my birthday :)  function ts_date($str_date,$str_append = 'old')   /* Server Variables */ foreach(array_keys($dv) as $svt)    /* Differences */ $mi = $cmi - $gmi; $h = $ch - $gh; $d = $cd - $gd; $m = $cm - $gm; $y = $cy - $gy;  if($mi  lt; 0)    if($h  lt; 0)    if($d  lt; 0)    if($m  lt; 0)    if($y  lt; 0)     /* Grammar Operations */  if($y  gt; 0)    if($m  gt; 0)   $r .= $m.' '.$g- gt;plural('month',$m); }  if($d  gt; 0)    $r .= $d.' '.$g- gt;plural('day',$d); }  if($h  gt; 0)   $r .= $h.' '.$g- gt;plural('hour',$h); }  i...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Current-Age-Script-v2/</guid>
</item>
<item><title>class for some mysql imitated time functions</title>
<pubDate>Fri, 17 Jun 2005 12:13:52 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/class-for-some-mysql-imitated-time-functions/</link>
		<description><![CDATA[sec_to_time(), sec_to_string(), string_to_sec(), time_diff()]]></description>
		<content:encoded><![CDATA[By : voldomazta lt;?  /** * Time Functions * by: Ramon Alivio Jr. * on: 2005-06-17 **/  class Time   }   /** * A reverse of sec_to_string() * Returns the number of seconds from 12:00:00AM using a string argument of the current time of the day. * Example Arguments : 6:02:54PM (64974), 11:05AM (39900) **/  function string_to_sec($time)  )\:([0-9] )\:?([0-9] )?\s?([a|A|p|P|n|N])([m|M|n|N])/ quot;,$time,$matches); $hours = $matches[1]; $minutes = $matches[2]; $seconds = (empty($matches[3]) ? '00' : $matches[3]); $meridian = strtoupper($matches[4].$matches[5]); if($hours  gt; 12 || $hours  lt; 0) r...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/class-for-some-mysql-imitated-time-functions/</guid>
</item>
<item><title>Current Age Script, up to the last day</title>
<pubDate>Wed, 08 Jun 2005 11:40:41 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Current-Age-Script-up-to-the-last-day/</link>
		<description><![CDATA[script that calculates the current age up to the last day.. grammar correct.]]></description>
		<content:encoded><![CDATA[By : voldomazta lt;?   function curage($gm,$gd,$gy)     /**  * vars for current date  **/   $cm = date('n');  $cd = date('j');  $cy = date('Y');    /**  * calculate differences  **/   $m = $cm - $gm;  $d = $cd - $gd;  $y = $cy - $gy;    /**  * if the given day is ahead of the current day  **/   if($d  lt; 0)     }    /**  * if the given month is ahead of the current month  **/   if($m  lt; 0)      /**  * the processing area  **/   if($y  lt; 0)   else      switch($m)      switch($d)     }   return $r;   }   ? gt; ...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Current-Age-Script-up-to-the-last-day/</guid>
</item>
<item><title>filemtime_remote</title>
<pubDate>Fri, 11 Mar 2005 05:56:05 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/filemtimeremote/</link>
		<description><![CDATA[this code grabs the last modification time on a  remote  image. joe ferris deserves the credit.]]></description>
		<content:encoded><![CDATA[ lt;?php  function filemtime_remote($uri)   } } fclose($handle); return $result; } // echo filemtime_remote('http://www.somesite.com/someimage.jpg');  ? gt;...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/filemtimeremote/</guid>
</item>
<item><title>Page Generation Time Figure-Outer</title>
<pubDate>Tue, 08 Feb 2005 01:39:26 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Page-Generation-Time-FigureOuter/</link>
		<description><![CDATA[Well, here it is... the new, faster, safer, easier and all around better class to easily assist you in determing the time it takes to generate a php page.


This code is extremely simple, yet extremely powerful.  All the bugs have been ironed out and it has been streamlined and optimized to deliver the goods in an extremely easy and fast little package.

The code is compatible with php 4   5 and is extremely easy to implement... simply, include the page, declare the class and you're good.  After that, place the start() function where you want to begin timing, the stop() function where you want to end timing, and the gen() function where you want to display the time.  the gen function simply returns the value, so make sure to utilize it inside of a print() or echo() command.  The gen() function must also be after the stop() function, obviously.  In addition, if you so wish, you are given the opportunity to change the decimal place to which the returned value is rounded too... simply modify the $change_to variable, it defaults to 4.  Below is an example implementation...

include_once('class.pagegen.php');
$pagegen = new page_gen();
$pagegen-&gt;round_to = 7;
$pagegen-&gt;start()

// all of your php code

$pagegen-&gt;stop();
print('page generation time: ' . $pagegen-&gt;gen());]]></description>
		<content:encoded><![CDATA[By : jam wil lt;?php class page_gen   }  // // FIGURE OUT THE TIME AT THE BEGINNING OF THE PAGE // function start()    // // FIGURE OUT THE TIME AT THE END OF THE PAGE // function stop()    // // CALCULATE THE DIFFERENCE BETWEEN THE BEGINNNG AND THE END AND RETURN THE VALUE // function gen()   } ? gt;...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Page-Generation-Time-FigureOuter/</guid>
</item>
<item><title>convGMT v2</title>
<pubDate>Mon, 14 Jun 2004 13:25:51 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/convGMT-v2/</link>
		<description><![CDATA[If your server and your location is not on the same time zone then your timestamp would be on the server zone. 
Here is how to get your own GMT instead of Server's GMT ]]></description>
		<content:encoded><![CDATA[By : hermawan/**  * Function mytime  * @desc Get timestamp for needed GMT  * @author Hermawan Haryanto  * @date June 14, 2004 - 23:10  * @input  * gmt String, Needed GMT  * @output  * timestamp  * @sample  * mytime('+7');  */  function mytime ($gmt = '')    else    return $rtn;  }...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/convGMT-v2/</guid>
</item>
<item><title>Benchmarker</title>
<pubDate>Fri, 11 Jun 2004 20:04:45 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Benchmarker/</link>
		<description><![CDATA[This benchmark script checks the speed of each method in any classes it is given.  It is a very effective way to compare two different algorithms.]]></description>
		<content:encoded><![CDATA[By : jinxidoru lt;?php /** * This script runs every method in a set of classes a specified * number of times. The total time taken as well as the average * time per iteration is printed after each test. *  * The script is run from the command line with as many arguments * as desired. An attempt is made to require each file given on * the command-line. The last element of the arg list, specifies * the number of iterations to execute for each method. For * example, the following call loads array_funcs.php and iterates * 100 times for each method: * $ php -Cq benchmark.php array_funcs.php 100 *  ...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Benchmarker/</guid>
</item>
<item><title>Simple PHP Calendar</title>
<pubDate>Wed, 21 Apr 2004 04:16:56 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Simple-PHP-Calendar/</link>
		<description><![CDATA[This is a simple calendar using PHP (using class) and javascript.  It has the capable of to change previous or next month calendar.  Easy to understand.]]></description>
		<content:encoded><![CDATA[By : rajavasu// Simple PHP Calendar - easy to understandClick to Download File...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Simple-PHP-Calendar/</guid>
</item>
<item><title>Display message according to hour of day</title>
<pubDate>Fri, 26 Mar 2004 17:20:48 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Display-message-according-to-hour-of-day/</link>
		<description><![CDATA[Pop this code into your site and it will display a message based on the time of day.]]></description>
		<content:encoded><![CDATA[By : shockingbird  lt;? /*This snippet will display a welcome message depending on the time of day You can change the messages displayed below. Feel free to use and modify to your liking.  Visit glomer.net for more information or e-mail: tate at tatenations dot com  USAGE: Simply plug into your site and change the messages to whatever you want. */  //Change the messages to what you want. $afternoon =  quot;Good afternoon!  quot;; $evening =  quot;Good evening!  quot;; $late =  quot;Working late?  quot;; $moring =  quot;Good morning!  quot;; $friday =  quot;Get ready for the weekend!  quot;;  /...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Display-message-according-to-hour-of-day/</guid>
</item>
<item><title>Display Date Function</title>
<pubDate>Mon, 14 Jul 2003 18:19:49 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Date-Time-Code/Display-Date-Function/</link>
		<description><![CDATA[You can manipulate many variables in the function.]]></description>
		<content:encoded><![CDATA[By : cds4654/*Displays out date variables in three select boxes inside a  lt;td gt; lt;/td gt;*/  lt;?php print  quot; lt;html gt; quot;; print  quot; lt;body gt; quot;;  print  quot; lt;table gt; quot;; print  quot; lt;tr gt; quot;;  get_dates( quot;2 quot;, quot;left quot;,  quot;000000 quot;,  quot;From quot;,  quot;nm_f quot;,  quot;nd_f quot;,  quot;ny_f quot;);  print  quot; lt;/tr gt; quot;; print  quot; lt;/table gt; quot;; print  quot; lt;/body gt; quot;; print  quot; lt;/html gt; quot;; ? gt;  lt;?php  function get_dates($col= quot; quot;, $ali= quot; quot;, $color= quot; quot;, $f_t...]]></content:encoded>
<category>Date Time Code</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Date-Time-Code/Display-Date-Function/</guid>
</item>
</channel>
</rss>
