Detention time is given by
\[
t=\frac{\text{Volume}}{\text{Flow}}
\]
Substituting the given values,
\[
t=\frac{1500}{3000}=0.5\ \text{day}
\]
Converting into hours,
\[
0.5\times24=12\ \text{hours}
\]
Hence,
\[
\boxed{12\ \text{hours}}
\]
Therefore,
\[
\boxed{(B)}
\]