using System; namespace DownKyi.Models { [Serializable] public class Downloaded// : DownloadBase { public Downloaded() : base() { } // 下载速度 public string MaxSpeedDisplay { get; set; } // 完成时间戳 public long FinishedTimestamp { get; set; } public void SetFinishedTimestamp(long finishedTimestamp) { FinishedTimestamp = finishedTimestamp; DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); // 当地时区 DateTime dateTime = startTime.AddSeconds(finishedTimestamp); FinishedTime = dateTime.ToString("yyyy-MM-dd HH:mm:ss"); } // 完成时间 public string FinishedTime { get; set; } } }