<?xml version="1.0"?>
<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007" xmlns:atom="http://www.w3.org/2005/Atom">
   <channel>
      <title>IMC Events - Curent Copy</title>
      <description>List of events at IMC.

Current working copy.

Steps:
1) pipe fetches the IMC Google Calendar. IMPORTANT: Must use &quot;full&quot; feed NOT basic. Also, add the following at the end of the Goolge feed URL: ?max-results=300&amp;&amp;ctz=America/Los_Angeles&amp;orderby=starttime&amp;sortorder=ascending&amp;futureevents=true&amp;singleevents=true 

2) Filters events are after &quot;now&quot;. We only want events in the future

3) Damn Google seems to converts time to UTC, need to convert it to PST. For both the start and end times of events I do several loops. First I format the time as UNIX time (%s), then I subtract 28800 seconds (PST=UTC -8 = 28800 seconds). Then I have to use date builder to make it a date again. Finally, I format the date in the style I want.

4) I then use several regular expressions to format the title how I want it to look (ie removing the am/pm form the start time if the end time is the same). I also set the pubDate to be yesterday because Google sets the pubDate to be the time/date the event was published. I wanted them all to be the same for ordering purposes and I did not want them to be the same time as the script was run.

5) In case the ordering coming out of step #1 is not in chronological order, the script orders events in order of start time.</description>
      <link>http://pipes.yahoo.com/pipes/pipe.info?_id=81105b2704635a81edd3439b45fd520d</link>
      <atom:link rel="next" href="http://pipes.yahoo.com/pipes/pipe.run?_id=81105b2704635a81edd3439b45fd520d&amp;_render=rss&amp;page=2"/>
      <pubDate>Thu, 01 Oct 2015 23:00:52 +0000</pubDate>
      <generator>http://pipes.yahoo.com/pipes/</generator>
   </channel>
</rss>
<!-- fe5.yql.bf1.yahoo.com compressed/chunked Thu Oct  1 23:00:52 UTC 2015 -->
