Initial commit

This commit is contained in:
2014-04-30 16:57:42 -04:00
commit 5c4a1c8b4c
126 changed files with 52769 additions and 0 deletions

15
DateTimeExtensions.cs Normal file
View File

@@ -0,0 +1,15 @@
using System;
namespace Common
{
public static class DateTimeExtensions
{
public static DateTime FromUnixTime(double unixTime)
{
// Unix timestamp is seconds past epoch
DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0);
dtDateTime = dtDateTime.AddSeconds(unixTime).ToLocalTime();
return dtDateTime;
}
}
}