Skip to content
This repository has been archived by the owner on Apr 9, 2018. It is now read-only.
/ TimeAgo Public archive

Get a string showing how long ago a DateTime was, for example '4 minutes ago' in many languages

Notifications You must be signed in to change notification settings

NickStrupat/TimeAgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABANDONED: This project is no longer being supported by myself.

I recommend using a better project: https://github.com/Humanizr/Humanizer

TimeAgo

Get a string showing how long ago a DateTime was, for example '4 minutes ago' in many languages

NuGet package listed on nuget.org at https://www.nuget.org/packages/TimeAgo/

NuGet Status

var dateTime = ...some time in the past...
var timeAgoInCurrentCulture = dateTime.TimeAgo(); // 54 seconds ago
var timeAgoInSpecificCulture = dateTime.TimeAgo(spanishCultureInfo); // Hace 54 segundos

Formats supported

  • 1 second ago
  • 5 seconds ago
  • 1 minute ago
  • 24 minutes ago
  • 1 hour ago
  • 13 hours ago
  • 1 day ago
  • 12 days ago
  • 1 month ago
  • 6 months ago
  • 1 year ago
  • 3 years ago

Languages supported (70)

Verified by a native speaker

  • Bosnian
  • Simplified Chinese
  • Traditional Chinese
  • English
  • French
  • Hungarian
  • Serbian
  • Spanish
  • Swedish

Unverified (will gladly take pull-requests for verified translations)

  • Afrikaans
  • Albanian
  • Arabic
  • Armenian
  • Azerbaijani
  • Basque
  • Belarusian
  • Bulgarian
  • Catalan
  • Croatian
  • Czech
  • Danish
  • Dutch
  • Estonian
  • Filipino
  • Finnish
  • Galician
  • Georgian
  • German
  • Greek
  • Gujarati
  • Hebrew
  • Hindi
  • Icelandic
  • Igbo
  • Indonesian
  • Irish
  • Italian
  • Japanese
  • Kannada
  • Kazakh
  • Khmer
  • Korean
  • Lao
  • Latvian
  • Lithuanian
  • Macedonian
  • Malagasy
  • Malayalam
  • Maltese
  • Maori
  • Marathi
  • Mongolian
  • Norwegian
  • Persian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Slovak
  • Slovenian
  • Tajik
  • Tamil
  • Telugu
  • Thai
  • Turkish
  • Ukrainian
  • Urdu
  • Uzbek
  • Vietnamese
  • Welsh
  • Yoruba

About

Get a string showing how long ago a DateTime was, for example '4 minutes ago' in many languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages