private static long GetSwtTime(DateTime time) { var dt = time - _swtBaseTime; return (long)dt.TotalSeconds; }