bower_components/time-elements/time-elements.js
// Returns true if the date needs a separator.
Returns true if the date needs a separator.
Returns true if the date needs a separator .
function isYearSeparator() {
    if (yearSeparator !== null) {
      return yearSeparator;
    }
    if (!('Intl' in window)) {
      return true;
    }
    var options = {day: 'numeric', month: 'short', year: 'numeric'};
    var formatter = new window.Intl.DateTimeFormat(undefined, options);
    var output = formatter.format(new Date(0));
    yearSeparator = !!output.match(/\d,/);
    return yearSeparator;
  }
function isYearSeparator ( ) { if ( yearSeparator !== null ) { return yearSeparator ; } if ( ! ( 'Intl' in window ) ) { return true ; } var options = { day : 'numeric' , month : 'short' , year : 'numeric' } ; var formatter = new window . Intl . DateTimeFormat ( undefined , options ) ; var output = formatter . format ( new Date ( 0 ) ) ; yearSeparator = ! ! output . match ( / \d, / ) ; return yearSeparator ; }
Returns true if the date needs a separator.
Returns true if the date needs a separator .