You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importVuefrom'vue';importtimyfrom'vue-timy';// Use vue-timyVue.use(timy);
2b. With custom formats.
importVuefrom'vue';importtimyfrom'vue-timy';//The following options can be overridden.varoptions={justNow: "Just now",aFewSecondsAgo: "A few seconds ago",secondsAgo: "seconds ago",aMinuteAgo: "A minute ago",minutesAgo: "minutes ago",anHourAgo: "An hour ago",hoursAgo: "hours ago",aDayAgo: "A day ago",daysAgo: "days ago",aWeekAgo: "A week ago",weeksAgo: "weeks ago",aMonthAgo: "A month ago",monthsAgo: "months ago",aYearAgo: "A year ago",yearsAgo: "years ago"};// Use vue-timy with custom formatsVue.use(timy,options);