protected void SetDateTime (string key, DateTime value) { var s = (int)(value - Epoch).TotalSeconds; defs.SetInt (s, key); }