discharge of capacitor through a current source
This is correct. The charge of the capacitor is given by:
$$Q=CV$$
and for constant current \$I\$, the charge is 
$$Q=I\cdot t$$
So $$CV=I\cdot t$$
which leads to $$t=\frac{CV}{I}$$