Averaging of time-periodic systems without a small parameter