Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to useTimeAgo Hook

With this hook you will be able to get time elapsed from a certain moment.

Arguments Require Default
timestamp required null
lang optional es
style optional short
import { useTimeAgo } from 'usetimeagojs'

const timestamp = 1683227229468;

const timeAgo = useTimeAgo({ timestamp: timestamp , lang: "en", style: "long" })
console.log( timeAgo ) // 5 days ago

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages