Study of time-dependent CP-violating asymmetries and flavor oscillations in neutral B decays at the Upsilon(4S)