pipr.tools

timestamp

Current Unix timestamp and ISO date

⚡ Gen

Try it

stdin0 chars
stdout0 chars

Example

Show current Unix timestamp and ISO date

Usage
$ echo "" | timestamp
View source
() => {
      const now = new Date();
      return `Unix:  ${Math.floor(now.getTime() / 1000)}\nISO:   ${now.toISOString()}\nLocal: ${now.toLocaleString()}`;
    }

Suggested Pipelines

Related Tools