# A note about Rec Splitter timestamps and offsets

**URL:** <https://forum.rtmaps.com/t/a-note-about-rec-splitter-timestamps-and-offsets/24>\
**Category:** Data Recording / Data Replay\
**Tags:** rec, split, splitter\
**Created:** [March 19, 2024, 2:59pm UTC](https://forum.rtmaps.com/t/a-note-about-rec-splitter-timestamps-and-offsets/24 "2024-03-19T14:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teo](https://forum.rtmaps.com/user_avatar/forum.rtmaps.com/teo/32/10_2.png) [@Teo](https://forum.rtmaps.com/u/Teo)\
**Post date:** [March 19, 2024, 2:59pm UTC](https://forum.rtmaps.com/t/a-note-about-rec-splitter-timestamps-and-offsets/24/1 "2024-03-19T14:59:45Z")

</div>

The rec\_splitter tool (found in the /bin folder of your RTMaps installation directory) requires timestamps to be specified in microsecond.  
Which is something to keep in mind when splitting recordings with an offset (in seconds).

Let’s say you a rec file beginning with something like this :

```auto
Launched at 10:29:08.327 (09/07/2020)
[STDB v2.0]
Offset (sec) : 1579251897
[Data]

```

As you can see there is an offset of 1579251897 (seconds) in the recorded data. To use the splitter, you will need to take this offset value and add 6 following zero to convert that offset defined in seconds to microseconds.

So in order to split the first 10 seconds you will need to specify the following interval

`1579251897000000;1579251907000000`

And to split from the 4th second to the 8th, that interval becomes:

`1579251900000000;1579251940000000`

If you need to split several interval, simply add them to a csv file, here called _timestampsInterval.csv_ (make sure each interval is separated with a new-line character) and feed that file to the rec\_splitter using :

`rtmaps_rec_splitter --timestamps timestampsInterval.csv -i myRecordings.rec`
