day.dart logo

A date library Day.js in dart. With nearly the same API.

Pub Travis CI GitHub

Day.dart is inspired by Day.js. Write with nearly the same API. Build on the top of the powerful DateTime class.

Important: Day.dart use the extension syntax to implement plugins system. So the dart version must >= 2.7.0

Features

  • 🕒 Nearly the same API as Day.js
  • 💪 Contains Immutable Methods
  • 🔗 Chainable
  • 👀 Useful formatting method
  • ⚙️ Plugin system
  • 🌐 I18n support

📚 API Documentation

⚙️ Plugins

🌐 I18n

License

Distributed under the MIT License.

Libraries

day
en
is_leap_year
relative_time
zh_cn