DTI Time Converter

Deterministic date conversion for the Dikenocracy framework

What it does

The DTI Time Converter translates between Gregorian dates, Hebrew dates, and the Dikenocratic Time Interface (DTI). The DTI model is based on deterministic mapping through JDN and a 360-day derived year representation.

The canonical rules are: DTI-Day = JDN, DY = floor(JDN / 360), DOY = (JDN mod 360) + 1. Every conversion is fully reversible and machine-auditable.

Open the converter

The standalone client-side converter runs directly in your browser — no server required. All conversion logic follows DKP-0-TIME-001 and uses integer-only arithmetic.
Open Converter
The converter is a zero-dependency HTML page. For Hebrew date support, use the Python API via the Converter DTI package.

Technical details

The converter is a standalone Python package located in Converter DTI/. It includes a deterministic domain layer, a FastAPI HTTP service, and an optional Streamlit client.

API

REST Endpoints

GET /health
POST /convert/gregorian-to-dti
POST /convert/dti-to-gregorian

Protocol

DKP-0-TIME-001

Implements all normative test vectors. The 2000-01-01 vector follows canonical formula output (DY6809-306). See PROTOCOL_NOTES.md for the rationale.

Ecosystem context

This tool is part of the broader Dikenocracy protocol ecosystem. It serves as the reference implementation for the time layer (DKP-0-TIME-001) and provides a foundation for time-indexed governance records, accountability cycles, and audit trails.