Database query time has no time, minute and second solution