From 1ff94ff668b121caa83a5e38d5f4e00ddd18de34 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 2 Dec 2014 13:38:59 +0000 Subject: [PATCH] added function for getting unix time stamp (in 64 bit int so no 2038 rubbish!) --- Saviour Backup System/tools.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Saviour Backup System/tools.cs b/Saviour Backup System/tools.cs index 875c7f2..e2b63ea 100644 --- a/Saviour Backup System/tools.cs +++ b/Saviour Backup System/tools.cs @@ -33,5 +33,6 @@ namespace Saviour_Backup_System } return sb.ToString(); } + public static Int64 getUnixTimeStamp() { return (Int64)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds; } } }