dateNowUnix()
Returns a number representing the current date and time in Unix time (seconds).
tip
If you need the current date in milliseconds (JavaScript timestamp), then use secondsToMilliseconds()
on the result of dateNowUnix()
.
Usage
import { dateNowUnix } from 'easy-dates';
dateNowUnix();
Prop types
This function does not take any props.
Examples
dateNowUnix() // 1648871014