mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Add timestamp to v2 header
This commit is contained in:
@@ -93,6 +93,7 @@ class Recorder:
|
|||||||
'version': 2,
|
'version': 2,
|
||||||
'width': cols,
|
'width': cols,
|
||||||
'height': lines,
|
'height': lines,
|
||||||
|
'timestamp': int(time.time()),
|
||||||
'env': saved_env,
|
'env': saved_env,
|
||||||
# TODO save max_wait here
|
# TODO save max_wait here
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ The following meta-data is **required** in asciicast v2:
|
|||||||
|
|
||||||
The following meta-data is **optional** in asciicast v2:
|
The following meta-data is **optional** in asciicast v2:
|
||||||
|
|
||||||
|
* `timestamp` - Unix timestamp of the beginning of the recording session (integer),
|
||||||
* `duration` - duration of the whole recording in seconds (when it's known upfront),
|
* `duration` - duration of the whole recording in seconds (when it's known upfront),
|
||||||
* `command` - command that was recorded, as given via `-c` option to `asciinema rec`,
|
* `command` - command that was recorded, as given via `-c` option to `asciinema rec`,
|
||||||
* `title` - title of the asciicast, as given via `-t` option to `asciinema rec`,
|
* `title` - title of the asciicast, as given via `-t` option to `asciinema rec`,
|
||||||
|
|||||||
Reference in New Issue
Block a user