Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeAgo.Core

This is a modernized fork of the original TimeAgo library by Nick Strupat. The goal of this version is to update the project to modern .NET standards (.NET Standard 2.0 and .NET 8.0).

A big thank you to Nick Strupat for creating the original project.

For more advanced and feature-rich date/time humanization, I highly recommend using the excellent Humanizer library.


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

NuGet Status

Usage

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages