A note on periodic solutions of some nonautonomous differential equations