<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/time</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 23:23:54 GMT</pubDate>
<item>
<title>(PHP) Convert Seconds into Time String in PHP - apphp-snippets</title>
<link>http://snipplr.com/view/70021/convert-seconds-into-time-string-in-php/</link>
<description><![CDATA[ <p>This function returns the duration of the given time period in days, hours, minutes and seconds. For example: echo convertSecToStr('654321'); would return "7 days, 13 hours, 45 minutes, 21 seconds"</p> ]]></description>
<pubDate>Wed, 20 Feb 2013 21:27:58 GMT</pubDate>
<guid>http://snipplr.com/view/70021/convert-seconds-into-time-string-in-php/</guid>
</item>
<item>
<title>(PHP) mtime: modified time - ryanve</title>
<link>http://snipplr.com/view/69668/mtime-modified-time/</link>
<description><![CDATA[ <p>Get modified time of a directory or file. For directories: it gets the modified time of the most recently modified file.</p> ]]></description>
<pubDate>Mon, 28 Jan 2013 10:20:20 GMT</pubDate>
<guid>http://snipplr.com/view/69668/mtime-modified-time/</guid>
</item>
<item>
<title>(PHP) Seconds to human readable time - mburica</title>
<link>http://snipplr.com/view/67723/seconds-to-human-readable-time/</link>
<description><![CDATA[ <p>Takes a # of seconds and converts it to human readable format.
If happened within seconds-years.</p> ]]></description>
<pubDate>Sat, 13 Oct 2012 09:54:04 GMT</pubDate>
<guid>http://snipplr.com/view/67723/seconds-to-human-readable-time/</guid>
</item>
<item>
<title>(PHP) PHP Function to Convert 12 Hour Time to 24 Hour Format - kosinix</title>
<link>http://snipplr.com/view/67326/php-function-to-convert-12-hour-time-to-24-hour-format/</link>
<description><![CDATA[ <p>Convert 12-hour time format with hour, minutes, seconds, and meridiem into 24-hour  format. Performs data correction to make sure hours, minutes and seconds have leading zeros if needed.

The trick here is to use strtotime() where we pass the time string in this format: "hh:mm:ss meridiem" 
Example: "02:30:00 pm"</p> ]]></description>
<pubDate>Sun, 23 Sep 2012 10:29:48 GMT</pubDate>
<guid>http://snipplr.com/view/67326/php-function-to-convert-12-hour-time-to-24-hour-format/</guid>
</item>
<item>
<title>(PHP) Set Timezone - ryarwood</title>
<link>http://snipplr.com/view/65570/set-timezone/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 13 Jun 2012 02:19:46 GMT</pubDate>
<guid>http://snipplr.com/view/65570/set-timezone/</guid>
</item>
<item>
<title>(PHP) PHP - Getting Yesterday\'s Date in PHP - satie83</title>
<link>http://snipplr.com/view/65560/php--getting-yesterdays-date-in-php/</link>
<description><![CDATA[ <p>Example calculate yesterday, but if you multiply by some number you can get in an easy way, weeks, months or years</p> ]]></description>
<pubDate>Tue, 12 Jun 2012 20:46:33 GMT</pubDate>
<guid>http://snipplr.com/view/65560/php--getting-yesterdays-date-in-php/</guid>
</item>
<item>
<title>(PHP) idle time - eluzano</title>
<link>http://snipplr.com/view/64919/idle-time/</link>
<description><![CDATA[ <p>//Set idle time</p> ]]></description>
<pubDate>Fri, 18 May 2012 01:03:59 GMT</pubDate>
<guid>http://snipplr.com/view/64919/idle-time/</guid>
</item>
<item>
<title>(PHP) PHP5 DateTimeZones grouped by continent - ch1902</title>
<link>http://snipplr.com/view/64847/php5-datetimezones-grouped-by-continent/</link>
<description><![CDATA[ <p>This is the list of [supported timzones](http://php.net/manual/timezones.php) that can be used with the [PHP5 DateTime](http://php.net/manual/class.datetime.php) class, grouped by geographical continent (rather than PHP's America/..., Asia/... etc identifiers). 

The array was built using the [DateTimeZone::getLocation()](http://php.net/manual/datetimezone.getlocation.php) method and [this list](http://en.wikipedia.org/wiki/List_of_sovereign_states_and_dependent_territories_by_continent_%28data_file%29) of ISO-3166-1 country codes (correcting for countries that straddle the Europe/Asia border, e.g. Russia).</p> ]]></description>
<pubDate>Sat, 12 May 2012 22:39:08 GMT</pubDate>
<guid>http://snipplr.com/view/64847/php5-datetimezones-grouped-by-continent/</guid>
</item>
<item>
<title>(PHP) Display date using the_time() function - paul0078</title>
<link>http://snipplr.com/view/64583/display-date-using-thetime-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 15 Apr 2012 20:15:57 GMT</pubDate>
<guid>http://snipplr.com/view/64583/display-date-using-thetime-function/</guid>
</item>
<item>
<title>(PHP) [PHP] simpletimes function - visionlighter</title>
<link>http://snipplr.com/view/64004/php-simpletimes-function/</link>
<description><![CDATA[ <p>A useful function for different formats of time or if you are dealing with time in PHP code.</p> ]]></description>
<pubDate>Sat, 17 Mar 2012 17:18:00 GMT</pubDate>
<guid>http://snipplr.com/view/64004/php-simpletimes-function/</guid>
</item>
<item>
<title>(PHP) PHP display date: year, month, day, time, etc. - jknight42</title>
<link>http://snipplr.com/view/62837/php-display-date-year-month-day-time-etc/</link>
<description><![CDATA[ <p>Just a few quick functions to display the date in PHP.</p> ]]></description>
<pubDate>Sun, 29 Jan 2012 09:12:35 GMT</pubDate>
<guid>http://snipplr.com/view/62837/php-display-date-year-month-day-time-etc/</guid>
</item>
<item>
<title>(PHP) e-solat php script - fazlee</title>
<link>http://snipplr.com/view/60903/esolat-php-script/</link>
<description><![CDATA[ <p>The purpose of this code is to grab information from e-solat.gov.my and get payer exact time. I use this code with GeekTools.</p> ]]></description>
<pubDate>Thu, 17 Nov 2011 03:19:09 GMT</pubDate>
<guid>http://snipplr.com/view/60903/esolat-php-script/</guid>
</item>
<item>
<title>(PHP) Calendar Generator (PHP) - jatkins</title>
<link>http://snipplr.com/view/60198/calendar-generator-php/</link>
<description><![CDATA[ <p>Released into the public domain.</p> ]]></description>
<pubDate>Wed, 26 Oct 2011 09:43:13 GMT</pubDate>
<guid>http://snipplr.com/view/60198/calendar-generator-php/</guid>
</item>
<item>
<title>(PHP) Convert Twitter API Datetime to MySQL Datetime Format - aristoworks</title>
<link>http://snipplr.com/view/59869/convert-twitter-api-datetime-to-mysql-datetime-format/</link>
<description><![CDATA[ <p>This is a very rudimentary function used to convert a Datetime delivered by the Twitter API to a format you can store in MySQL's datetime field.</p> ]]></description>
<pubDate>Mon, 17 Oct 2011 00:51:40 GMT</pubDate>
<guid>http://snipplr.com/view/59869/convert-twitter-api-datetime-to-mysql-datetime-format/</guid>
</item>
<item>
<title>(PHP) Convert Seconds To HH:MM:SS - aristoworks</title>
<link>http://snipplr.com/view/58732/convert-seconds-to-hhmmss/</link>
<description><![CDATA[ <p>This came in handy when I was working with Hour / Minute / Second dropdown on a page.</p> ]]></description>
<pubDate>Fri, 16 Sep 2011 06:13:27 GMT</pubDate>
<guid>http://snipplr.com/view/58732/convert-seconds-to-hhmmss/</guid>
</item>
<item>
<title>(PHP) Timestamp Selectbox 15 min intervals - bitsculptor</title>
<link>http://snipplr.com/view/58528/timestamp-selectbox-15-min-intervals/</link>
<description><![CDATA[ <p>Outputs a select box that has timestamps from 12AM-12PM in 15min increments.</p> ]]></description>
<pubDate>Fri, 09 Sep 2011 02:32:15 GMT</pubDate>
<guid>http://snipplr.com/view/58528/timestamp-selectbox-15-min-intervals/</guid>
</item>
<item>
<title>(PHP) Get the Current Time - dubogii</title>
<link>http://snipplr.com/view/58087/get-the-current-time/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 22 Aug 2011 20:35:43 GMT</pubDate>
<guid>http://snipplr.com/view/58087/get-the-current-time/</guid>
</item>
<item>
<title>(PHP) Mostrare differenze di tempo come stringhe - claudiowebdesign</title>
<link>http://snipplr.com/view/58074/mostrare-differenze-di-tempo-come-stringhe/</link>
<description><![CDATA[ <p>Questa piccola funzione riceve come argomento uno unix timestamp e ritorna una stringa contenente la "descrizione verbosa" della differenza di tempo. Ad esempio, usando il timestamp relativo a 5 minuti e mezzo fa, ritornerà la stringa "5 minuti e 30 secondi fa".
nota: Funziona anche con timestamp nel futuro, e dando il timestamp attuale ritorna "Adesso".</p> ]]></description>
<pubDate>Mon, 22 Aug 2011 02:42:39 GMT</pubDate>
<guid>http://snipplr.com/view/58074/mostrare-differenze-di-tempo-come-stringhe/</guid>
</item>
<item>
<title>(PHP) PHP - Display Updated time - erraja_07</title>
<link>http://snipplr.com/view/55652/php--display-updated-time/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 24 Jun 2011 04:06:31 GMT</pubDate>
<guid>http://snipplr.com/view/55652/php--display-updated-time/</guid>
</item>
<item>
<title>(PHP) Twitter style “time ago” dates on posts in wordpress - paulund</title>
<link>http://snipplr.com/view/55256/twitter-style-time-ago-dates-on-posts-in-wordpress/</link>
<description><![CDATA[ <p>Allows you to display a look like 5 days ago.</p> ]]></description>
<pubDate>Wed, 15 Jun 2011 18:01:04 GMT</pubDate>
<guid>http://snipplr.com/view/55256/twitter-style-time-ago-dates-on-posts-in-wordpress/</guid>
</item>
</channel>
</rss>