MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / localeIsPM

Function localeIsPM

tests/test_code/js/moment/moment.js:1983–1987  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

1981 // LOCALES
1982
1983 function localeIsPM(input) {
1984 // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
1985 // Using charAt should be more compatible.
1986 return (input + '').toLowerCase().charAt(0) === 'p';
1987 }
1988
1989 var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
1990 // Setting the hour should keep the time, because the user explicitly

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected