<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EPOCH &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/epoch/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Mon, 09 Apr 2018 19:58:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>PostgreSQL: Get the Milliseconds from the Timestamp</title>
		<link>https://www.dbrnd.com/2018/04/postgresql-get-the-milliseconds-from-the-timestamp/</link>
					<comments>https://www.dbrnd.com/2018/04/postgresql-get-the-milliseconds-from-the-timestamp/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 10 Apr 2018 16:16:30 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[EPOCH]]></category>
		<category><![CDATA[MILLISECOND]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Monitoring]]></category>
		<category><![CDATA[PostgreSQL Performance Tuning]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<category><![CDATA[TIMESTAMP]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7363</guid>

					<description><![CDATA[In this post, I am sharing a conversion statement which converts Timestamp into Milliseconds in PostgreSQL Server. There are multiple reasons where we need milliseconds from the given Timestamp like comparing the timestamp value in number format for exact matching. We can use EPOCH time format, to get the milliseconds from Timestamp. Get milliseconds without [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-get-the-milliseconds-from-the-timestamp%2F&amp;linkname=PostgreSQL%3A%20Get%20the%20Milliseconds%20from%20the%20Timestamp" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-get-the-milliseconds-from-the-timestamp%2F&amp;linkname=PostgreSQL%3A%20Get%20the%20Milliseconds%20from%20the%20Timestamp" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-get-the-milliseconds-from-the-timestamp%2F&amp;linkname=PostgreSQL%3A%20Get%20the%20Milliseconds%20from%20the%20Timestamp" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-get-the-milliseconds-from-the-timestamp%2F&amp;linkname=PostgreSQL%3A%20Get%20the%20Milliseconds%20from%20the%20Timestamp" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-get-the-milliseconds-from-the-timestamp%2F&amp;linkname=PostgreSQL%3A%20Get%20the%20Milliseconds%20from%20the%20Timestamp" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-get-the-milliseconds-from-the-timestamp%2F&amp;linkname=PostgreSQL%3A%20Get%20the%20Milliseconds%20from%20the%20Timestamp" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F04%2Fpostgresql-get-the-milliseconds-from-the-timestamp%2F&#038;title=PostgreSQL%3A%20Get%20the%20Milliseconds%20from%20the%20Timestamp" data-a2a-url="https://www.dbrnd.com/2018/04/postgresql-get-the-milliseconds-from-the-timestamp/" data-a2a-title="PostgreSQL: Get the Milliseconds from the Timestamp"></a></p><p>In this post, I am sharing a conversion statement which converts Timestamp into Milliseconds in PostgreSQL Server.</p>
<p>There are multiple reasons where we need milliseconds from the given Timestamp like comparing the timestamp value in number format for exact matching.</p>
<p>We can use EPOCH time format, to get the milliseconds from Timestamp.</p>
<p><strong>Get milliseconds without specifying timezone:</strong></p>
<pre class="crayon-plain-tag">SELECT EXTRACT(EPOCH FROM (SELECT NOW())) * 1000;</pre> </p>
<p><strong>Get milliseconds by specifying timezone:</strong></p>
<pre class="crayon-plain-tag">SELECT EXTRACT(EPOCH FROM (SELECT NOW() AT TIME ZONE 'UTC')) * 1000;</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2018/04/postgresql-get-the-milliseconds-from-the-timestamp/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
