Global stability of positive periodic solutions and almost periodic