### Example: LC_TIME Locale Category Definition

The following lines are a sample definition of an LC_TIME locale category, as they might appear in a locale source file.

    #############
    LC_TIME
    #############

    abday   "<S><u><n>";\
            "<M><o><n>";\
            "<T><u><e>";\
            "<W><e><d>";\
            "<T><h><u>";\
            "<F><r><i>";\
            "<S><a><t>"

    day     "<S><u><n><d><a><y>";\
            "<M><o><n><d><a><y>";\
            "<T><u><e><s><d><a><y>";\
            "<W><e><d><n><e><s><d><a><y>";\
            "<T><h><u><r><s><d><a><y>";\
            "<F><r><i><d><a><y>";\
            "<S><a><t><u><r><d><a><y>"

    abmon   "<J><a><n>";\
            "<F><e><b>";\
            "<M><a><r>";\
            "<A><p><r>";\
            "<M><a><y>";\
            "<J><u><n>";\
            "<J><u><l>";\
            "<A><u><g>";\
            "<S><e><p>";\
            "<O><c><t>";\
            "<N><o><v>";\
            "<D><e><c>"

    mon     "<J><a><n><u><a><r><y>";\
            "<F><e><b><r><u><a><r><y>";\
            "<M><a><r><c><h>";\
            "<A><p><r><i><l>";\
            "<M><a><y>";\
            "<J><u><n><e>";\
            "<J><u><l><y>";\
            "<A><u><g><u><s><t>";\
            "<S><e><p><t><e><m><b><e><r>";\
            "<O><c><t><o><b><e><r>";\
            "<N><o><v><e><m><b><e><r>";\
            "<D><e><c><e><m><b><e><r>"

    # equivalent of AM/PM (%p)
    am_pm      "<A><M>";"<P><M>"

    # appropriate date and time representation (%c) "%a %b %e %H:%M:%S %Y"
    d_t_fmt    "<percent-sign><a><space><percent-sign><b><space><percent-sign><e>\
    <space><percent-sign><H><colon><percent-sign><M>\
    <colon><percent-sign><S><space><percent-sign><Y>"

    # appropriate date representation (%x) "%m/%d/%y"
    d_fmt      "<percent-sign><m><slash><percent-sign><d><slash><percent-sign><y>"

    # appropriate time representation (%X) "%H:%M:%S"
    t_fmt      "<percent-sign><M><colon><percent-sign><M><colon><percent-sign><S>"

    # appropriate 12-hour time representation (%r) "%I:%M:%S %p"
    t_fmt_ampm "<percent-sign><I><colon><percent-sign><M><colon><percent-sign><S>\
    <space><percent-sign><p>"

    END LC_TIME

Internationalization
Localization and Locales

Customize a Locale

LC_TIME Locale Category
Locale Categories
Locale Source Files