Skip to content

useTime ​

Category
Time

Hook that gives you current time in different values

typescript
import { useTime } from '@siberiacancode/reactuse';

Usage ​

typescript
const { seconds, minutes, hours, meridiemHours, day, month, year, timestamp } = useTime();

Demo ​

Api ​

Contributors ​

Source • Demo