DevTools Logo

Life in Weeks

Examples

Two weeks lived

Input
buildLifeWeeks("2000-01-03", "2000-01-17", 80)
Output
lived = 2

2000-01-03 is a Monday.

About this tool

Life in Weeks draws years × 52 cells on a canvas. Lived weeks are slate, the current week is green, milestones are amber.

Weeks start Monday UTC from the birth week. Default span is 80 years (4160 cells).

How to use this tool

  1. Set birth and years

    20–120 years.

  2. Add milestones

    Label + date, then draw weeks.

Use cases

Private lifespan sketch

Pin school or move dates without an account.

Common mistakes

Mistake:Expecting local-week boundaries.

Fix:The grid uses Monday UTC weeks.

Frequently asked questions

What does this tool do?

It paints years × 52 week cells, fills the past, and marks milestones.

When does a week start?

Monday UTC of the birth week.

Why canvas?

4160 cells stay cheap as pixels instead of DOM nodes.

Is the birth date uploaded?

No.

References & standards