It appears it is currently not possible to GLOBALLY configure the default EndianPrecedence property of Options for new instances of the Chronic.Parser type, like it is available in the ruby clone (please check out this comment).
A public static non readonly field, as created for DefaultAmbiguousTimeRange, should be enough, like so:
// readonly modifier removed to allow re-configuration per AppDomain.
public static EndianPrecedence DefaultEndianPrecedence = EndianPrecedence.Middle;
Hi,
It appears it is currently not possible to GLOBALLY configure the default EndianPrecedence property of Options for new instances of the Chronic.Parser type, like it is available in the ruby clone (please check out this comment).
A public static non readonly field, as created for DefaultAmbiguousTimeRange, should be enough, like so:
then, can be used in the constructor like so:
This will make the EndianPrecedence configuration globally, (say in Global.asax Application_Start), viz:
Can you please kindly get this fixed, or will a pull request be better?
Thanks, please.