summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume <guillaumelacasa@hotmail.com>2013-06-12 22:54:39 +0200
committerGuillaume <guillaumelacasa@hotmail.com>2013-06-12 22:54:39 +0200
commita7382d296c265d90e4395508fa2015f699a2164d (patch)
treec741945915febd86592518013442ef023f871904
parentb06c0faaf8881f9447f3fd682feffcf3ddae1990 (diff)
downloadTwoStepsAuthenticator-a7382d296c265d90e4395508fa2015f699a2164d.zip
TwoStepsAuthenticator-a7382d296c265d90e4395508fa2015f699a2164d.tar.gz
TwoStepsAuthenticator-a7382d296c265d90e4395508fa2015f699a2164d.tar.bz2
Unused file removed
-rw-r--r--TwoStepsAuthenticator/TwoStepsAuthenticator.csproj1
-rw-r--r--TwoStepsAuthenticator/UnixTimeHelper.cs23
2 files changed, 0 insertions, 24 deletions
diff --git a/TwoStepsAuthenticator/TwoStepsAuthenticator.csproj b/TwoStepsAuthenticator/TwoStepsAuthenticator.csproj
index 6a37cfe..7e9e1e0 100644
--- a/TwoStepsAuthenticator/TwoStepsAuthenticator.csproj
+++ b/TwoStepsAuthenticator/TwoStepsAuthenticator.csproj
@@ -42,7 +42,6 @@
<Compile Include="Base32Encoding.cs" />
<Compile Include="Authenticator.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="UnixTimeHelper.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
diff --git a/TwoStepsAuthenticator/UnixTimeHelper.cs b/TwoStepsAuthenticator/UnixTimeHelper.cs
deleted file mode 100644
index c9b6e47..0000000
--- a/TwoStepsAuthenticator/UnixTimeHelper.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace TwoStepsAuthenticator
-{
- // http://www.rudyhuyn.com/blog/2012/04/02/convertir-un-temps-unix-vers-un-datetime-et-inversement/
- internal static class UnixTimeHelper
- {
- internal static DateTime ToDateTime(this long unixTime)
- {
- return new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(unixTime).ToLocalTime();
- }
-
- internal static long ToUnixTime(this DateTime datetime)
- {
- TimeSpan ts = (datetime.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc));
- return (long)ts.TotalSeconds;
- }
- }
-}