title: compare two files based on datetime upto minute?
body: <p>I need to compare two files based on datetime upto minute by eliminating seconds while comparing...</p>
  
  <pre><code>public class FileCompareLastwritetime : System.Collections.Generic.IEqualityComparer&lt;System.IO.FileInfo&gt;
          {
              public FileCompareLastwritetime() { }
              public bool Equals(System.IO.FileInfo f1, System.IO.FileInfo f2)
              {
                  return f1.LastWriteTime == f2.LastWriteTime;
              }
              public int GetHashCode(System.IO.FileInfo fi)
              {
                  string s = String.Format("{0}", fi.LastWriteTime);
                  return s.GetHashCode();
              }
          }
  </code></pre>