I was making an instant messenger app, so i need a way to tell the user how long ago a message was received. My method takes in a DateTime.Now that was captured and checks it against the current DateTime.Now to see elapsed time, it then calculates it and returns things like "6 seconds ago", "1 minute ago" , " 1 month ago".
I posted my code here: http://pastebin.com/7N1kqLQ6
I dont believe my code is right. Does anyone else see a problem in my code logic?