{
  "id": "sc_e93b098765e64b95b0a8a3d67c2d0620",
  "url": "https://speccommons.org/s/timestamp-base36-v1",
  "schema": "https://speccommons.org/s/definition-record",
  "slug": "timestamp-base36-v1",
  "title": "Compact UTC seconds in base 36",
  "summary": "Shorten whole-second timestamp strings while preserving their precise meaning.",
  "content": "Compact UTC seconds in base 36\n\n## Time rules\n\nCount whole seconds since 1970-01-01T00:00:00Z. Each day has 86,400 seconds; leap seconds are not represented.\nSupported values are integers from 0 to 253402300799 inclusive (1970 through 9999).\nThere are no fractional seconds, local-time offsets or negative values. Reject unsupported values rather than round or guess.\n\n## Representation\n\nUse a JSON string containing the integer in base 36. Digits 0-9 have values 0-9 and lowercase letters a-z have values 10-35.\nUse \"0\" for zero. Otherwise no leading zeroes, signs, whitespace, uppercase letters or extra characters are allowed.\nReject strings longer than eight characters and decoded integers outside the supported range.\nDecode the base-36 integer, multiply by 1000 for a millisecond-based date library, and display the resulting UTC instant.\nExample: \"tmqtm8\" decodes to 1791722096 seconds, representing 2026-10-11T12:34:56Z.\n\n## Compatibility\n\nThis is a distinct format. A field or dataset using it must explicitly reference this specification version. Do not infer it from the characters alone.\n\n## Conformance examples\n\n| JSON value | Whole seconds since the epoch |\n| --- | ---: |\n| `\"0\"` | 0 |\n| `\"z\"` | 35 |\n| `\"10\"` | 36 |\n| `\"tmqtm8\"` | 1791722096 |\n| `\"38et6qnz\"` | 253402300799 |\n\nReject each JSON value in the following array. The array is a list of test inputs.\n\n```json\n[\n  \"\",\n  \"00\",\n  \"01\",\n  \"TMQTM8\",\n  \"+1\",\n  \"-1\",\n  \"-2g\",\n  \" 1\",\n  \"1 \",\n  \"1\\n\",\n  \"1.5\",\n  \"zzzzzzzz\",\n  \"111111111\",\n  \"38et6qo0\",\n  36,\n  true,\n  null\n]\n```\n\n## Reuse\n\nThe publisher dedicates this publication to the public domain under [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/).",
  "publisher": "pub_fe36aa0feef84fcebf76ef53dba6dab6",
  "published_at": "2026-11-12T11:35:12Z",
  "parent": "https://speccommons.org/s/timestamp-decimal-v1",
  "change_note": "Use lowercase base 36 in place of decimal digits while keeping the same epoch, precision, and supported range.",
  "references": []
}
