<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: VBScript code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 22:17:07 GMT</pubDate>
    <description>DZone Snippets: VBScript code</description>
    <item>
      <title>RecordSet to tab-separated values</title>
      <link>http://snippets.dzone.com/posts/show/3644</link>
      <description>&lt;code&gt;&lt;br /&gt;Function TSV(rs)&lt;br /&gt;	Dim field&lt;br /&gt;	For Each field In rs.Fields&lt;br /&gt;		TSV = TSV &amp; field.Name &amp; VBTab&lt;br /&gt;	Next&lt;br /&gt;	TSV = Left(TSV, Len(TSV) - 1) &amp; vbCr &amp; rs.GetString()&lt;br /&gt;End Function&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The rows are separated by vbCr ("\r" in most languages).&lt;br /&gt;The first row is the field names.</description>
      <pubDate>Wed, 07 Mar 2007 21:51:49 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3644</guid>
      <author>mrclay (Steve Clay)</author>
    </item>
    <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>
