I'm working on a DSL that should support a time literal and am interested in two different things:
- What language(s) or DSL(s) support a time literal?
- How is the literal structured?
I'm leaning towards using the following regular expression, extracted from the XSD for XML Schema itself, for identifying a time literal:
T\d\d:\d\d:\d\d[+\-]\d\d:\d\d
But, despite that inclination, I haven't been able to find a common practice.