1
Fork 0

added function for getting unix time stamp (in 64 bit int so no 2038 rubbish!)

This commit is contained in:
Jake Howard 2014-12-02 13:38:59 +00:00
parent bd06cf5bd0
commit 1ff94ff668

View file

@ -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; }
}
}