code: function parseDate(s, ignoreTimezone) { // ignoreTimezone defaults to true
  	if (typeof s == 'object') { // already a Date object
  		return s;
  	}
  	if (typeof s == 'number') { // a UNIX timestamp
  		return new Date(s * 1000);
  	}
  	if (typeof s == 'string') {
  		if (s.match(/^\d+(\.\d+)?$/)) { // a UNIX timestamp
  			return new Date(parseFloat(s) * 1000);
  		}
  		if (ignoreTimezone === undefined) {
  			ignoreTimezone = true;
  		}
  		return parseISO8601(s, ignoreTimezone) || (s ? new Date(s) : null);
  	}
  	// TODO: never return invalid dates (like from new Date(<string>)), return null instead
  	return null;
  }
docs: /* Date Parsing
  -----------------------------------------------------------------------------