GitHub
Time file formats

Formats

Your time is in hledger’s own timedot and timeclock formats. This page shows what the invoicer writes, what it reads, and which hand-written lines hledger reads differently from what they seem to say. You don’t need it to track time in the app.

Timedot

A timedot file is a list of days. Each day is a date line with the day’s entries indented under it, one account and one amount per line. This is a tracker file as the invoicer writes it:

# Time — pat — November 2026
# Written by Ledgeline; hand edits welcome. Keep two spaces before amounts.

2026-11-25 Wed  ; person: pat
    clients:acme:tax-return         130m  ; reviewed schedules C and E
    internal:admin                   15m

2026-11-26 Thu  ; person: pat
    clients:acme:tax-return          45m  ; invoice: 108
    clients:acme:tax-return          20m  ; call with Fred about the K-1
    clients:acme:advisory             1h
    ; ● running clients:acme:advisory  since 14:05:12

The invoicer only changes the lines it needs to. A line it doesn’t touch stays byte for byte as it was, including your spacing and any amounts written another way. When it adds or changes a line, it lines that line up with the rest of its day.

What the invoicer reads

Any timedot hledger reads, the invoicer reads too:

You writeMeans
....Dots: a quarter hour each, so this is an hour. Spaces between them don’t count.
aabbcLetters: a quarter hour each. Each letter is its own entry, tagged t:a, t:b, …
1.5, 1,5Hours, with no unit.
90s, 45m, 2h, 1d, 1wSeconds, minutes, hours, days, weeks. No space before the unit.
-15mA negative amount, to correct a day.

Date lines can be written 2026-11-26, 2026/11/26 or 2026.11.26, and org-mode * headings around them are fine. A line starting with # or ; is a comment.

An indented ; line right under a date line or an entry continues that line’s comment, as in hledger. Its text adds to the note, and its tags count:

2026-11-26 Thu
    ; person: pat
    clients:acme:advisory  30m
    ; invoice: 108

Here the first ; line puts person: pat on the whole day, and the second bills the entry on invoice 108. Several indented ; lines in a row all continue the same line. The run ends at a blank line, a ; line that isn’t indented, or any # line. An indented ; line after that is a plain comment, and so is every # line, indented or not.

The invoicer keeps exact time: 20m is 20 minutes, not 0.33 hours.

Timeclock

A timeclock file records sessions: a clock-in line and a clock-out line, each with a date and time.

; Time — sam — November 2026
; Written by Ledgeline; hand edits welcome. Keep two spaces after the account.

i 2026-11-26 09:00:05 internal:admin  ; person: sam
o 2026-11-26 10:30:17 internal:admin

The invoicer reads timeclock files anywhere the roll-up includes them, and edits a session by its start and end in Entries.

Tracking in timeclock

With record = "timeclock" in your settings, the tracker writes timeclock instead of timedot, to time/<name>/YYYY-MM.timeclock. Each start writes an i line and each stop its o line, both with seconds. The tracker rounds nothing, since the session is the record, and billing adds up the exact times before any rounding the customer asks for.

Timeclock has no running line. The open i line shows that a clock is running. The tracker can’t write notes in this mode. Write the session’s comment by hand.

Writing rules

These are the rules the invoicer follows when it writes, and the ones to follow when you edit by hand:

Lines hledger misreads

These lines don’t mean what they seem to in hledger 1.52. The invoicer never writes them, and Entries warns about them in files you write by hand:

You writehledger 1.52 readsThe invoicer reads
clients:acme 30m (one space)An account named clients:acme 30m with 0 hours. A single tab does the same.The same, with a warning
internal:admin 1 21 2 as a number with a digit-group space: 12 hours.The same, with a warning
internal:sales 1mo5040 hours: 1.52’s mo and y are seven times too big.30 days (y: 365), with a warning
clients:globex 20m0.33 hours: 1.52 rounds each unit amount to 0.01 hour. hledger 1.99.6 drops the rounding.20 minutes exactly
internal:admin with no amount0 hours.The same, with a warning
b, h or O timeclock lines with textA parse error, though the manual allows them.Ignored, with a warning

The rounding is why hledger’s totals can be off by a few hundredths of an hour from the invoicer’s: three 2m lines are 0.09 hours in hledger and 0.10 in the invoicer. Invoices never use hledger’s figure.

A few more facts about how hledger reads these files:

Settings

Book settings

The names and places of the time files, and the words written into them, belong to the books. Set them under [time] in the books’ ledgeline.toml. Every key is optional:

[time]
# The roll-up journal. Default: time.journal
file = "time.journal"
# The time account tree. Default: time-accounts.journal
accounts-file = "time-accounts.journal"
# Where the tracker writes. Default: time/{person}/{yyyy}-{mm}.timedot
track-file = "time/{person}/{yyyy}-{mm}.timedot"
# What the tracker writes: "timedot" (default) or "timeclock".
record = "timedot"
# The weekday on date lines: "short" (default) or "none".
weekday = "short"

[time.tags]
# Other names for the tags, per role.
invoice = "rechnung"

[time.words]
# Words written into new files.
weekdays = ["Mo", "Di", "Mi", "Do", "Fr", "Sa", "So"]
months = ["Januar", "Februar", "März", "April", "Mai", "Juni",
          "Juli", "August", "September", "Oktober", "November", "Dezember"]
clients = "kunden"
internal = "intern"
admin = "verwaltung"
title = "Zeit"
KeyMeans
fileThe roll-up: a .journal, or a single .timedot or .timeclock file that’s the whole time book. Use existing… at setup writes this.
accounts-fileThe time account tree.
track-fileA pattern for the tracker’s files, with {person}, {yyyy}, {mm} and {dd}. With no person, a folder that’s only {person} is left out. One fixed file, such as time.timedot, works too: the tracker adds its days there. The default is time/{person}/{yyyy}-{mm}.timeclock when record is timeclock.
recordtimedot writes rounded minutes per day; timeclock writes i/o sessions with seconds.
weekdaynone leaves date lines with the bare date.
[time.tags]A new name for any of customer, billable, item, archived, person, invoice, bill, nobill. The key is the default name.
[time.words]weekdays (seven, Monday first) and months (twelve) for date lines and file headers; clients, internal and admin for the accounts setup seeds; title for the first word of a tracker file’s header.

Paths are relative to the journal’s folder, and must stay inside it. The invoicer ignores a value it can’t use and applies the default.

When the invoicer writes a new time file the roll-up doesn’t include yet, such as the first file in a new folder, it adds the include line the roll-up needs. It only adds lines, and leaves the ones you wrote alone.

If you rename invoice, the books still use invoice: on the invoice’s booking. hledger reg tag:invoice=108 then finds the booking but not the hours. See Settings files for how ledgeline.toml works.

Your own settings

Your own choices are kept with your other view settings, under [time] in ui-prefs.toml:

KeyDefaultMeans
personnoneYour name in the time files. Set at setup, or with Change on Track.
step5Minutes that + and - add or take off.
long-running240Minutes before a running clock asks whether it was left on. 0 turns it off.
weekly-target0Hours a week, drawn on Track’s week strip and the overview’s chart. 0 is no target.
[time]
person = "pat"
step = 10
weekly-target = 35

Your pins and slot 0 are kept for each set of books, and you set them on Track. The time command line reads the same file, so the app and your scripts share your name, your pins and your slot 0.