<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Sql Server DateTime Conversion</title>
	<atom:link href="http://www.primedigit.com/2008/12/02/sql-server-datetime-conversion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.primedigit.com/2008/12/02/sql-server-datetime-conversion/</link>
	<description>Thoughts on ASP.NET, Visual Design, SQL Server 2005, C# and much more...</description>
	<lastBuildDate>Sat, 11 Jun 2011 20:01:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Stefan Stenegger</title>
		<link>http://www.primedigit.com/2008/12/02/sql-server-datetime-conversion/comment-page-1/#comment-576</link>
		<dc:creator>Stefan Stenegger</dc:creator>
		<pubDate>Wed, 03 Dec 2008 12:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.primedigit.com/2008/12/02/sql-server-datetime-conversion/#comment-576</guid>
		<description>We wrote our own class, because we are additionally storing the offset to UTC with every date and time. The own class checks the range and rounds the ticks in the constructor, and therefore it only holds persistable values and does not change after saving and loading it. And it could be null. We create it using Now or a regular DateTime in the constructor, and get DateTime values again with members like UtcTime or ToLocalTime() and more. No fancy stuff actually. We map it using a component every time (there are two properties to map). This could probably be easier with some NH feature (custom type?), but I didn&#039;t have the time to care about this until now.</description>
		<content:encoded><![CDATA[<p>We wrote our own class, because we are additionally storing the offset to UTC with every date and time. The own class checks the range and rounds the ticks in the constructor, and therefore it only holds persistable values and does not change after saving and loading it. And it could be null. We create it using Now or a regular DateTime in the constructor, and get DateTime values again with members like UtcTime or ToLocalTime() and more. No fancy stuff actually. We map it using a component every time (there are two properties to map). This could probably be easier with some NH feature (custom type?), but I didn&#8217;t have the time to care about this until now.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

