Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.527 kB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FluentCassandra
{
public static class Helper
{
public static DateTime MillisecondResolution(this DateTime dt)
{
var t = dt - DateTime.MinValue;
return DateTime.MinValue.AddMilliseconds(t.TotalMilliseconds);
}
public static DateTimeOffset MillisecondResolution(this DateTimeOffset dt)
{
var t = dt - DateTimeOffset.MinValue;
return DateTimeOffset.MinValue.AddMilliseconds(t.TotalMilliseconds);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.