Skip to content

Tiny C# lib for showing relative time differences in a short sentence

Notifications You must be signed in to change notification settings

jgimness/SharpTimeAgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#SharpTimeAgo - Short sentence for relative time difference

This is a small library to help you show relative time differences in a sentence form. It currently supports seconds, minutes, hours, days, months, and years.

For example, calling it with a Date of June 22 would give you "almost a month ago"

string timeAgo = SharpTimeAgo.GetTimeAgo(myDate, isUtc);

There is also a DateExtensions class which adds several utility methods to System.DateTime

About

Tiny C# lib for showing relative time differences in a short sentence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages