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

Function localeMeridiem

tests/test_code/js/moment/moment.js:1996–2002  ·  view source on GitHub ↗
(hours, minutes, isLower)

Source from the content-addressed store, hash-verified

1994 getSetHour = makeGetSet('Hours', true);
1995
1996 function localeMeridiem(hours, minutes, isLower) {
1997 if (hours > 11) {
1998 return isLower ? 'pm' : 'PM';
1999 } else {
2000 return isLower ? 'am' : 'AM';
2001 }
2002 }
2003
2004 var baseConfig = {
2005 calendar: defaultCalendar,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected