Skip to main content

Morrow.mojo

Human-friendly date and time utilities for Mojo, inspired by Arrow and focused on parsing, formatting, time zone conversion, spans, ranges, and relative time.

MojoUTC + fixed offsets
from morrow import Morrow

var utc = Morrow.get("2026-01-01 03:04:05Z")
print(utc)

var local = utc.to("+08:00")
print(local.format("YYYY-MM-DD HH:mm:ss ZZ"))

UTC by default

Construct dates, timestamps, and fixed-offset time zones with predictable UTC behavior.

Arrow-style formatting

Use tokens such as YYYY, MMMM, Do, ZZ, X, and x for compact parsing and output.

Spans and relative time

Shift dates, iterate ranges, calculate spans, and humanize or dehumanize English distances.