Skip to content
This repository has been archived by the owner. It is now read-only.
Get a string showing how long ago a DateTime was, for example '4 minutes ago' in many languages
Branch: master
Clone or download
Latest commit 5eae4da Feb 20, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
TimeAgo.Tests fixed 0 seconds Mar 23, 2015
TimeAgo Catalan language change. Feb 19, 2017
.gitignore Initial commit Mar 17, 2015
README.md Update README.md Jul 7, 2016
TimeAgo.sln refactoring and unit tests Mar 18, 2015

README.md

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
You can’t perform that action at this time.