<?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/12</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 14:06:56 GMT</pubDate>
<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) simple 24 hour time (MySQL or military) to 12 hour time conversion - jimmayes</title>
<link>http://snipplr.com/view/5205/simple-24-hour-time-mysql-or-military-to-12-hour-time-conversion/</link>
<description><![CDATA[ <p>simple and clean... convert 24 hour format to 12 hour format with PHP native functions.

BTW, works in the other direction too (12 hour to 24 hour)... that's the second line below</p> ]]></description>
<pubDate>Tue, 26 Feb 2008 12:54:32 GMT</pubDate>
<guid>http://snipplr.com/view/5205/simple-24-hour-time-mysql-or-military-to-12-hour-time-conversion/</guid>
</item>
</channel>
</rss>