Simplified Grammar File Containing Patterns to Match Times of Day
NOTE: The following grammar file is a simplified version provided for example purposes, rather than actual source code.
<entity name="time_24_hour" type="public"> <pattern>[01][0-9]:[0-5][0-9]</pattern> <pattern>2[0-3]:[0-5][0-9]</pattern> </entity> <entity name="time_all" type="public"> <pattern>(?A:time_24_hour)</pattern> <entry headword="Midnight"/> <entry headword="midnight"/> <pattern>([1-9]|10|11|12) ?[ap]\.?m\.?</pattern> </entity>