Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X: equivalent to %r in en_US #76

Open
kawanet opened this issue Nov 27, 2017 · 0 comments
Open

X: equivalent to %r in en_US #76

kawanet opened this issue Nov 27, 2017 · 0 comments

Comments

@kawanet
Copy link
Contributor

kawanet commented Nov 27, 2017

README.md description is NOT correct:

X: equivalent to %D in en_US (based on locale)
x: equivalent to %T in en_US (based on locale)

strftime.js implementation:

en_US: {
    days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ],
    shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
    months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
    shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    ordinalSuffixes: [
        'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th', 'th',
        'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th',
        'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th', 'th',
        'st'
    ],
    AM: 'AM',
    PM: 'PM',
    am: 'am',
    pm: 'pm',
    formats: {
        c: '%a %d %b %Y %X %Z',
        D: '%m/%d/%y',
        F: '%Y-%m-%d',
        R: '%H:%M',
        r: '%I:%M:%S %p',
        T: '%H:%M:%S',
        v: '%e-%b-%Y',
        X: '%r',
        x: '%D'
    }
},
kawanet added a commit to kawanet/strftime that referenced this issue Nov 27, 2017
samsonjs added a commit that referenced this issue Dec 5, 2017
re #76: X: equivalent to %r in en_US
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant