Local and global dynamics of Ramsey model. From continuous to discrete time