File format suggestion for timestamps

Hi,

I have a suggestion about the file format.
It would be much easier to change the cast file if it had the relative time instead of absolute time.

Like this:
{“version”: 2, “width”: 130, “height”: 15, “timestamp”: 1735750187, “env”: {“SHELL”: “/bin/bash”, “TERM”: “xterm-256color”}}
[1,“o”,“aomdev env build\r\n”]
[2,“o”,“Git branch ‘main’ will be built for environment ‘std’. Continue? (y/n): “]
[0.5,“o”,“y\r\n”]
[1,“o”,“Validate Environment Variables\r\n validateBuildEnvVars found no invalid variables\r\n”]
[1,“o”,“Cache build\r\n”]
[1,“o”,” Create .artifactDownload folder\r\n”]

Otherwise a very nice tool :slight_smile: :+1:
Regards
Håkan

1 Like

Hey Håkan!

You’re not the first to suggest this change, so I’m strongly considering updating the file format (to version 3), and amongst other small tweaks change the timestamp to relative time :+1:

Thanks, this will be nice!
ku1ik
:raised_hands:
:raised_hands:

The new asciicast v3 format uses relative time (intervals): asciicast v3 - asciinema docs

The asciinema CLI in develop branch already records in this format by default.