Description
Return valid=true and canonical=T for separator T, lowercase t, or one ASCII space; otherwise return valid=false and canonical="".
TOML keys and values have distinct bare, quoted, literal-string, and date/time rules. A dotted key consists of segments, and quote prefixes alone do not prove a valid complete string. A local recognizer can intentionally support a smaller grammar than the full language.
Return valid=true and canonical=T for separator T, lowercase t, or one ASCII space; otherwise return valid=false and canonical="".
When to use this tool
Use Toml Date Time Separator Token when you need to inspect one supported TOML-related prefix, key segment, or separator.
How to use the tool and how it works
- Enter separator. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read valid, canonical. Inspect valid before interpreting the associated values.
Return valid=true and canonical=T for separator T, lowercase t, or one ASCII space; otherwise return valid=false and canonical="".1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| separator | Separator | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| valid | Valid | Required. Boolean. |
| canonical | T when valid; empty string otherwise. | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"separator": " "
},
"output": {
"valid": true,
"canonical": "T"
}
} Limitations and assumptions
- This checks a single date/time separator token. It does not validate a calendar date, time, offset, surrounding TOML token, or an entire document; empty canonical is a failed-match placeholder.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use a full TOML parser for complete keys, string escapes, dates, duplicate definitions, and document semantics. Keep this tool's restricted grammar distinct from the language specification.
References
Similar or alternative tools
- Dispensing Source Period Gap
Return daysFromStart and daysToEnd as UTC day differences, and sourceCoversDate with an inclusive start and end controlled by endInclusive.
- Research Age Anchor Gap
Compare supplied civil-date research age with an explicit day anchor; no age-category or care rule.