Skip to content

Introduction

Hour Advantage is the engine you build time and attendance on. It comes in two parts.

Connect talks to time clocks. It speaks each clock’s own language and gives your systems clean events and one API.

Time and Attendance works out pay. It turns punches into payable hours by your pay rules. Every minute a rule changes carries the name of that rule.

Use either engine alone, or both together.

Both engines are headless. They have no screens and no user accounts. Your product owns those and calls the engines through their API.

Clocks any vendor their own protocols Connect people on clocks, routing punches Time and Attendance pay rules, timecards, close exports Payroll and billing in their own file formats Your product screens, users, approvers
Your product reaches both engines through their API and events. Either engine can be replaced by a system of your own.
  • Software companies that build time and attendance, payroll or workforce products. You don’t write clock protocols or a pay rules engine yourself.
  • Staffing agencies and labor platforms that pay workers and bill clients for the same hours.
  • Clock dealers who look after clocks for many businesses. You send each business’s punches to the system it already uses.
  • Companies that run their own time and attendance on their own servers.

Business models shows how each one fits the engines.

The rule behind each minuteWhen a rule moves a minute, the timecard says which rule did it and which policy layers it came from. For example: daily [tenant rev 1, us-ca rev 2]: moved 4h from work to overtime: over 8h in the day. Every line on a timecard says why (every line says why).
Rules tested before they go livePay rules come as policy packages with scenarios. A scenario is a worked example of the hours one case comes to. When you publish a package, the server runs its scenarios. If one fails, the server refuses the package and every timecard stays as it was (scenarios, policy cookbook).
Late changes as adjustmentsOnce a pay period is closed, its timecard stays as it was paid. A late punch or a correction shows up as an adjustment in the open period. The adjustment is the difference from what was already paid. This works in whatever order you reopen and close periods (closed periods).
Staffing built inYou can work out the same hours twice: once for pay and once for billing. Each has its own rules, rates and approvals. Each client approves the hours of its own placement (a staffing agency).
Punches stored firstThe engine stores a punch before it tells the clock it arrived. If Connect goes down, the clock keeps its punches. It sends them when it can reach Connect again (a punch’s path).
PartWhat it does
ConnectClocks talk to it in their own protocol. Each kind of clock has one protocol package. Connect keeps the same people on every clock in a group. It sends each punch to the right person and system. It sends events to your systems. It takes commands for the clocks through one API. It reports facts and runs commands. Decisions made at the clock belong to your policy.
Time and AttendanceTurns punches, corrections, labor entries and leave into timecards, one per pay period. Hours sit in pay categories, against a labor context, in decimal hours. Rounding carries to the next line, so the lines add up to the total. It also handles approvals, period close, accruals, exceptions and payroll export. Every rule comes from your policy. You can use the standard rules with their settings, or write rules of your own.
Shared platformWhat both engines run on: the database, sinks that deliver events, external ids, packages, settings and environments, and the admin API.

Both engines run in one program, hourd, on one Postgres database. They talk to each other only through their public contract: events out and API in. So you can replace either one with a system of your own. Architecture shows how the pieces fit.

You want toRead
Try itThe quick start.
Connect clocks and receive their punchesConnect and sinks.
Understand how time is worked outTime and Attendance, the ledger and policies.
Set up pay rulesThe standard steps, the policy cookbook of tested recipes, and writing policy steps for a rule no standard step covers.
Decide what happens at the clockConnect policy packages: routing punches, clocks joining and coming back, and people enrolled at a clock.
Support another kind of clockWriting packages.
Connect your own systemThe admin API, the events and external ids.
Run it in productionDeploying and operations.

Copyright (c) 2026 Tim Williamson. All rights reserved. This project is not affiliated with or endorsed by any device vendor.