TIMEW-IMPORT(1)
β¨ TIMEW-IMPORT(1) β¨
okay bestie, welcome to timew-import from the User Manuals β this is the page that teaches you how to yeet your time-tracking data into timew from a file π
πΈ NAME πΈ
timew-import β import time-tracking data from files π¦
β SYNOPSIS β
timew import [<file>...]
π DESCRIPTION π
So here's the vibe: you're importing tracked time from a file. That's it, that's the whole thing. But if you don't specify any files at all? No worries bestie, the command will just read from standard input instead π«Ά
Now, the data you're importing has to be in JSON format, exactly the way it gets exported by timew-export(1) β meaning it's a single array full of interval objects. No cap, that's the only format it'll accept π
When you import, all those intervals get checked for overlaps against the intervals you already have. And if an overlap shows up? the import will abort at the first overlap and no more intervals are imported β unless you've specified the :adjust hint. So like, it literally stops dead the second things get messy π
In general, it is recommended to create a backup of your data before importing. π¨ Fr fr, back up your stuff first. Don't be the person who raw-dogs an import and loses their whole timeline. That's not main character energy, that's just tragedy.
π HINTS π
:adjustβ When given, the imported interval will overwrite any existing intervals that it overlaps with. π Yes queen, it just bulldozes right over them.
π₯ EXAMPLES π₯
π Import intervals from a file
Import intervals from a single file:
timew import intervals.json
Any file path that does not start with a / is interpreted as relative to the current working directory. So no slash = it's looking right where you're standing, iykyk π
π Import intervals from multiple files
One can also use shell wildcards and absolute paths:
timew import /path/to/intervals/*.json
Shell wildcards? Absolute paths? Both at once? Obsessed. Ate. β¨
π Import intervals from standard input
Import intervals from stdin:
timew export | ssh <server> 'timew import'
This is especially useful for synchronizing intervals between different machines. π¦ Piping your whole timeline across the network into another box? Iconic behaviour, honestly. π
π SEE ALSO π
timew-export(1) β that's your source of the JSON format, go read it too π
timew 1.9.1 Β· 2025-08-27
and that's the whole page bestie, mwah π π stay tracked, stay un-overlapped, periodt β¨πΈ
π¦ where this page comes from
- fedora 43: timew 1.9.1-1.fc43 Β· MIT
- fedora 44: timew 1.9.1-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms