B2G/gaia/apps/email/js/ext/mailapi/imap/probe.js
/**
 * Parses (UTC) IMAP dates into UTC timestamps. IMAP dates are DD-Mon-YYYY.
 */
Parses (UTC) IMAP dates into UTC timestamps. IMAP dates are DD-Mon-YYYY.
Parses ( UTC ) IMAP dates into UTC timestamps . IMAP dates are DD - Mon - YYYY .
function parseImapDate(dstr) {
  var match = reDate.exec(dstr);
  if (!match)
    throw new Error("Not a good IMAP date: " + dstr);
  var day = parseInt(match[1], 10),
      zeroMonth = MONTHS.indexOf(match[2]),
      year = parseInt(match[3], 10);
  return Date.UTC(year, zeroMonth, day);
}
function parseImapDate ( dstr ) { var match = reDate . exec ( dstr ) ; if ( ! match ) throw new Error ( "Not a good IMAP date: " + dstr ) ; var day = parseInt ( match [ 1 ] , 10 ) , zeroMonth = MONTHS . indexOf ( match [ 2 ] ) , year = parseInt ( match [ 3 ] , 10 ) ; return Date . UTC ( year , zeroMonth , day ) ; }
Parses (UTC) IMAP dates into UTC timestamps.
Parses ( UTC ) IMAP dates into UTC timestamps .