If you need to get the last time that content was modified in a SharePoint site there is a SPSite and SPWeb property to get that information.
SPSite thisSite = new SPSite();
DateTime.FromFileTime(thisSite.LastContentModifiedDate.ToFileTimeUtc());
This can be helpful in writing a web part or code for displaying site in a web application not modified in a specified time.
Happy Coding!
c3d82121-2682-49a3-9fb2-d100e087cfa1|0|.0