Print

Print


From: Saašha Metsärantala

>  exclude constructs like

>

> 2015-?02?-31

>

> as well as to exclude

>

> 2015?-?02-31

 

If we can come up with a general rule (or two) covering illegal constructs, then fine (even if it  means that some sensible constructs might be precluded).  Otherwise I'd prefer to be silent on this rather than just supply a few examples of what you can't do.

 

Could the rule be:

if one of the characters '?', '~', '%'  is included to the left of one (or more) of the date components, then that character should not occur to the right of any component.  

Thus for example these constructs, 2015-?02?-31 and 2015?-?02-31, are invalid.

 

 

Also:

Use ‘?’ (or ‘~’ or ‘%’) to the right of a component rather than to the left of that component as well as all components to the left. Thus:

Don’t say  ?2015-?02-?31  ; instead say 2015-02-31?

Don’t say  ?2015-?02-31  ; instead say 2015-02?-31  

Don’t say  ?2015-02-31  ; instead say 2015?-02-31  

 

Any other simple rules?

 

Ray