Versions 32 to 33
Lines 1–8 at 33 (were 1–6 at 32)
33
5+
46const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
57
Lines 18–24 at 33 (were 16–28 at 32)
1820
19−/**
20− * A news sentence with its time after the who: an announcement's after
21− * "Announcement from <who> (<how>)", any other at its end.
22− */
2322export function newsWithTime(text: string, at: number | null, now: number = Date.now()): string {
24− if (at === null) return text;
25− const time = shortWhen(at, now);
26− const head = /^(Announcement from .+? \([^)]*\)): /.exec(text);
27− return head ? `${head[1]}, ${time}: ${text.slice(head[0].length)}` : `${text} (${time})`;
- MCP
- compare on this site's /mcp
- CLI
- abso diff 32 33 client/src/times.ts --json
- JSON
- /christopher/abso-core/compare/32..33?file=client%2Fsrc%2Ftimes.ts&format=json