background_scripts/bgscript-utils.js
//converts Utc milliseconds since the epoch into a format that can be digested by google
converts Utc milliseconds since the epoch into a format that can be digested by google
converts Utc milliseconds since the epoch into a format that can be digested by google
function convertToGoogleDTime(utcMilliseconds) {
	var d = new Date(0);
	d.setUTCMilliseconds(utcMilliseconds);
	function pad(n) {
		return n < 10 ? "0" + n : n;
	}
	return (
		d.getUTCFullYear() +
		"-" +
		pad(d.getUTCMonth() + 1) +
		"-" +
		pad(d.getUTCDate()) +
		"T" +
		pad(d.getUTCHours()) +
		":" +
		pad(d.getUTCMinutes()) +
		":" +
		pad(d.getUTCSeconds()) +
		"Z"
	);
}
function convertToGoogleDTime ( utcMilliseconds ) { var d = new Date ( 0 ) ; d . setUTCMilliseconds ( utcMilliseconds ) ; function pad ( n ) { return n < 10 ? "0" + n : n ; } return ( d . getUTCFullYear ( ) + "-" + pad ( d . getUTCMonth ( ) + 1 ) + "-" + pad ( d . getUTCDate ( ) ) + "T" + pad ( d . getUTCHours ( ) ) + ":" + pad ( d . getUTCMinutes ( ) ) + ":" + pad ( d . getUTCSeconds ( ) ) + "Z" ) ; }
converts Utc milliseconds since the epoch into a format that can be digested by google
converts Utc milliseconds since the epoch into a format that can be digested by google
//takes date object