Timestamp Converter

Convert between different timestamp and date formats.

Commands

devv timestamp                         # Current time
devv timestamp 1720396800              # Unix epoch to all formats
devv timestamp "2024-07-08T00:00:00Z"  # ISO to all formats

Examples

# Get current time in all formats
devv timestamp

# Convert a Unix timestamp from logs
devv timestamp 1720396800

# Convert an ISO date
devv timestamp "2024-07-08T00:00:00Z"

Output

$ devv timestamp
Unix:  1720396800
ISO:   2024-07-08T00:00:00.000Z
UTC:   Mon, 08 Jul 2024 00:00:00 GMT
Local: 7/8/2024, 12:00:00 AM

$ devv timestamp 1720396800
Unix:  1720396800
ISO:   2024-07-08T00:00:00.000Z
UTC:   Mon, 08 Jul 2024 00:00:00 GMT
Local: 7/8/2024, 12:00:00 AM

Pipeline Usage

Pipeline ID Description
timestamp-converter Convert timestamp formats
devv pipe exec "timestamp-converter" "1720396800"

Behavior

Passthrough — the original input is forwarded to the next step. The timestamp conversion is displayed but doesn't replace the data flowing through.

Was this page helpful?