function parseXInfo(X) {
	// format the X Block start time into a string
	var info = {
		time: X.format('h:mm A'),
		fromNow: X.fromNow()
	}

	// handle case where notification is scheduled at time of X Block
	if (moment().isSame(X, 'minute')) {
		info.fromNow = "right now";
	}

	return info;
}
// given X Block moment object, parse relevant info
given X Block moment object, parse relevant info
given X Block moment object parse relevant info
function parseXInfo(X) {
	var info = {
		time: X.format('h:mm A'),
		fromNow: X.fromNow()
	}
	if (moment().isSame(X, 'minute')) {
		info.fromNow = "right now";
	}
	return info;
}
function parseXInfo ( X ) { var info = { time : X . format ( 'h:mm A' ) , fromNow : X . fromNow ( ) } if ( moment ( ) . isSame ( X , 'minute' ) ) { info . fromNow = "right now" ; } return info ; }
given X Block moment object, parse relevant info
given X Block moment object parse relevant info
// format the X Block start time into a string // handle case where notification is scheduled at time of X Block