timeago

Fast, multilingual, and lightweight datetime package that converts given datetime into "n time ago" format

MIT License

Stars
19
timeago - Release v2.2.1 Latest Release

Published by SerhiiCho 7 months ago

  • Updated README.md file by adding more information about supported languages
  • Formatted CHANGELOG.md file
  • Added more tests
timeago - Release v2.2.0

Published by SerhiiCho 8 months ago

  • Add the German 🇩🇪 language support
  • Formatted CHANGELOG.md file
timeago - Release v2.1.11

Published by SerhiiCho 10 months ago

  • Update Go version in go.mod to 1.13
  • Change package namespace to github.com/SerhiiCho/timeago/v2 to match Go versioning rules
timeago - Release v2.1.10

Published by SerhiiCho 10 months ago

  • Update Go version in go.mod from 1.13 to 1.20
timeago - v2.1.9

Published by SerhiiCho 10 months ago

  • Update CHANGELOG.md file
timeago - v2.1.8

Published by SerhiiCho 11 months ago

  • Removed forgotten print function for debugging purposes from lang.go file
timeago - v2.1.7

Published by SerhiiCho about 1 year ago

  • Renamed master branch to main
  • Added more tests
  • Simplified code
  • Replaced deprecated ioutil.ReadFile with os.ReadFile
timeago - v2.1.6

Published by SerhiiCho almost 2 years ago

  • Changed typo in README.md file;
  • Added ability to overwrite output strings for custom values;
timeago - v2.1.5

Published by SerhiiCho about 2 years ago

Code base refactoring. Made source code look nicer;

timeago - v2.1.4

Published by SerhiiCho about 2 years ago

  • Refactored code;
timeago - v2.1.3

Published by SerhiiCho over 2 years ago

  • Documentation improvements and small changes;
  • Fixed bug in test file tests/utils.go related to not properly counting months and years when testing;
  • Added link to README.md file;
timeago - v2.1.2

Published by SerhiiCho over 2 years ago

  • Added so that Parse function can except not only past date but also future date and return correct result. Closes #23;
  • Added section 12 Features to the README.md;
timeago - v2.1.1

Published by SerhiiCho over 2 years ago

  • Added option justNow that prints Just now if time is within 60 minutes;
  • Added option noSuffix that removes ago from the printed result;
  • Added more info to OPTIONS.md documentation file;
timeago - v2.1.0

Published by SerhiiCho almost 3 years ago

  • Changed:
    • Renamed Lang structure to lang to make it private;
    • Renamed Rule structure to rule to make it private;
    • Changed location configurations. Now package can work without location configuration;
  • Removed:
    • Removed badge from README.md file;
    • Removed tests from language files and added 1 test to online_test.go file;
timeago - v2.0.4

Published by SerhiiCho almost 3 years ago

  • Added:
    • Added anchors to "Contribute translation" docs;
    • Added 2 new GitHub badges;
    • Added more tests and test coverage;
  • Changed:
    • Improved tests for languages by changing the way to write them;
  • Fixed:
    • Fixed mistakes in Ukrainian language translation;
timeago - v2.0.3

Published by SerhiiCho almost 3 years ago

  • Added support for Dutch language;
timeago - v2.0.2

Published by SerhiiCho almost 3 years ago

  • Fixed typo in docs;
  • Added more info to contribute a translation guide;
timeago - v2.0.1

Published by SerhiiCho almost 3 years ago

  • Fixed
    • Fixed not working anchor tag in OPTIONS.md file;
  • Added
    • Added emoji to Release notes title in CHANGELOG.md;
    • Added .gitattributes file;
    • Added Example usage on repl.it website;
    • Added nice image banner to README.md file;
timeago - v2.0.0

Published by SerhiiCho almost 3 years ago

  • Added
    • Added ability for Parse method to except unix timestamp;
    • Added ability for Parse method to except Time from Go time package;
  • Changed
    • Renamed Take method to Parse;
    • Changed the way you pass options;
    • Renamed Set method to SetConfig;
    • Changed the way you set configurations for the package;
  • Documentation
    • Added more information to docs;
    • Added docs directory with all the docs;
    • Changed structure of the CHANGELOG.md;
  • Other
    • Refactored and rewritten code;
timeago - v1.1.8

Published by SerhiiCho almost 3 years ago

  • Improved documentation for the package.