public static XElement ExportPendingChange(PendingChange change) { return new XElement( "change", new XElement("path", change.ServerItem), new XElement("checkoutDate", ExportDateTime(change.CreationDate)), new XElement("daysSinceCheckout", ExportTimeSpanDays(DateTime.Now - change.CreationDate))); }