protontime 2.0.0 copy "protontime: ^2.0.0" to clipboard
protontime: ^2.0.0 copied to clipboard

A library useful for creating fuzzy timestamps. (e.g. "2 min ago")

2.0.0 #

BREAKING CHANGES:

  • Version 2 of this library no longer relies on the intl package, enabling seamless use across browser, Flutter, and server environments.

  • The API is now significantly simpler; there's no need to create instances anymore —just utilize the format method directly.

  • All locale messages from version 1 are accessible for use, with the library defaulting to loading English (en). Additionally, it supports over 45 languages —please refer to the example for details.

  • Please refer to the test and example folders for usage examples.

1.0.3 #

  • Locale messages have been incorporated for languages including English (en), Korean (ko), Chinese (zh), Spanish (es), and Brazilian Portuguese (br). Further additions for additional languages are currently in progress.

1.0.2 #

  • API change for better clarity

1.0.1 #

  • Update messages to be more concise

1.0.0 #

  • Initial version.
2
likes
140
pub points
21%
popularity

Publisher

verified publishernben.com.np

A library useful for creating fuzzy timestamps. (e.g. "2 min ago")

Homepage

Topics

#date #time #timestamp

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on protontime