The time facets can easily be extended and customized for many different cultures. To stay portable one can derive from time_get and time_put and re-implement the behavior described above. Or one could take advantage of the EWL C++ implementation of these classes and build upon the existing functionality quite easily. Specifically you can easily alter the following data in the EWL time facets:
- The abbreviations of the weekday names
- The full weekday names
- The abbreviations of the month names
- The full month names
- The date-and-time format pattern (what %c will expand to)
- The date format pattern (what %x will expand to)
- The time format pattern (what %X will expand to)
- The 12 hour time format pattern (what %r will expand to)
- The strings used for AM/PM
- The strings used for the UTC offset
- The strings used for time zone names
- The default century to be used when parsing %y