A first integral of motion in classical dynamics which contains the time explicitly and is conjugate to the Hamiltonian is quantized. The resulting quantal operator is applied to study the time delay caused by scattering, and in a simple case the expectation value of this operator is obtained.