Skip to content

Commit

Permalink
add Age
Browse files Browse the repository at this point in the history
  • Loading branch information
inorton committed May 31, 2014
1 parent 0b91a1f commit ca2bdd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CClash/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ public static void WriteLine(this StringBuilder sb, string fmt, params object[]
sb.AppendFormat(fmt, args);
sb.AppendLine();
}

public static TimeSpan Age(this DateTime dt)
{
return DateTime.Now.Subtract(dt);
}
}
}
Binary file modified cclash.v11.suo
Binary file not shown.

0 comments on commit ca2bdd1

Please sign in to comment.