<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: timestamp code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 08 Aug 2008 18:49:31 GMT</pubDate>
    <description>DZone Snippets: timestamp code</description>
    <item>
      <title>Unix time</title>
      <link>http://snippets.dzone.com/posts/show/3643</link>
      <description>&lt;code&gt;&lt;br /&gt;Function UnixTime(gmtHrsOffset)&lt;br /&gt;	UnixTime = DateDiff("s", "1/1/1970 00:00:00", Now()) - (3600 * gmtHrsOffset)&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Repsonse.Write(UnixTime(-5)) 'E.S.T.&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Adding in the GMT offset allowed this to match PHP's time() function on a separate server.</description>
      <pubDate>Wed, 07 Mar 2007 21:43:08 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3643</guid>
      <author>mrclay (Steve Clay)</author>
    </item>
  </channel>
</rss>
