<s> class Units ( object ) : <EOL> METRIC = "<STR_LIT>" <EOL> ENGLISH = "<STR_LIT>" <EOL> @ staticmethod <EOL> def to_array ( ) : <EOL> return [ Units . METRIC , Units . ENGLISH ] <EOL> class TimeFormats ( object ) : <EOL> MILITARY = "<STR_LIT>" <EOL> CIVILIAN = "<STR_LIT>" <EOL> @ staticmethod <EOL> def to_array ( ) : <EOL> return [ TimeFormats . MILITARY , TimeFormats . CIVILIAN ] <EOL> class Direction ( object ) : <EOL> @ staticmethod <EOL> def shorthand ( direction ) : <EOL> normalized = direction . lower ( ) <EOL> if normalized == "<STR_LIT>" : <EOL> return "<STR_LIT:E>" <EOL> if normalized == "<STR_LIT>" : <EOL> return "<STR_LIT>" <EOL> if normalized == "<STR_LIT>" : <EOL> return "<STR_LIT:S>" <EOL> if normalized == "<STR_LIT>" : <EOL> return "<STR_LIT:N>" <EOL> return direction <EOL> class DateFormats ( object ) : <EOL> DATE = "<STR_LIT:date>" <EOL> DAY = "<STR_LIT>" <EOL> @ staticmethod <EOL> def to_array ( ) : <EOL> return [ DateFormats . DATE , DateFormats . DAY ] </s>
