@vuecs/timeago

A package containing a timeago component.
12,920 4
Install
npm install @vuecs/timeago
Latest Version:2.2.1
Vue:3
License:Apache-2.0
Last Updated:Oct 16, 2026
Links: GitHub  ·  npm
Maintainer: tada5hi

@vuecs/timeago

npm version CI license

<VCTimeago> — live relative timestamps for Vue 3 ("3 minutes ago", "in 2 days"), part of vuecs. Locale-aware through vuecs's central locale config, auto-updating as time passes.

✨ What's inside

  • 🕒 Flexible input — :datetime accepts Date, epoch number, or ISO string.
  • 🔄 Auto-update — re-renders as the relative time changes; disable with :auto-update="false".
  • 🌍 Locale-aware — reads the app-wide locale via useLocale() from @vuecs/core (set it through config: { locale }, @vuecs/locale, or your i18n library); per-instance :locale prop wins. Register date-fns locales via provideLocales.
  • 🧪 Custom converter — swap the formatting logic entirely via the :converter / :converter-options props.

📦 Installation

npm install @vuecs/timeago

⚡ Usage

<VCTimeago :datetime="post.createdAt" />
<VCTimeago :datetime="Date.now() - 60_000" locale="de-DE" />

📚 Documentation

Full reference + locale setup: vuecs.dev/components/timeago

License

Made with 💚

Published under Apache 2.0 License.

Related Packages

vue2-timeago

A vue component used to format date with time ago statement.

107,009 86
vue3-timeago

A vue component used to format date with time ago statement.

10,791 4
vue-moment

Handy Moment.js filters for your Vue.js project

3,393,663 1,305

Version History

Version Released License
2.2.1 Apache-2.0
2.2.0 Apache-2.0
2.1.4 Apache-2.0
2.1.3 Apache-2.0
2.1.2 Apache-2.0