/// <summary> /// Convert epoch time to something nicer /// </summary> public ExportStatusResponse ToPublic() { var real = new ExportStatusResponse(); real.Absorb(this); var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); var utcDate = epoch.AddSeconds(DateTime); real.DateTime = new DateTimeOffset(utcDate); return(real); }
/// <summary> /// Convert epoch time to something nicer /// </summary> public ExportStatusResponse ToPublic() { var real = new ExportStatusResponse(); real.Absorb(this); var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); var utcDate = epoch.AddSeconds(DateTime); real.DateTime = new DateTimeOffset(utcDate); return real; }