it takes like some hours to rotate all that
28 days
it takes 1 month
it takes approximately 29 and one thirds days.
Like Earth's moon, Deimos' axial rotation is synchronous with its orbital revolution as a satellite of Mars. The period of both motions is 30.3 hours.
The moon's gravity doesn't cause those motions, and those motions certainly don't cause the moon's gravity.
The two motions that cause the Moon to show a complete cycle of phases each month are its orbit around the Earth and the Earth's rotation on its axis. As the Moon orbits the Earth, the angle between the Earth, Moon, and Sun changes, resulting in the various phases of the Moon. Simultaneously, the Earth's rotation allows us in New York State to observe these phases over the course of the month as the Moon rises and sets at different times. Together, these motions create the full lunar cycle we see each month.
moon phases
It takes 1 month for the moon to complete each orbit but takes 1 day for it to complete 1 motion
revolution anad rotation
29.5 days.
The earth rotates at the rate of 1 rotation each [ 23 hours 56 minutes 4 seconds ].The moon rotates on its axis and revolves around the earth, executing both motions in the sameidentical period of [ 27.32 days ].
One revolution of the Moon around the Earth takes about 27.5 days. Note that a full cycle, from full Moon to full Moon, is a bit longer, about 29.5 days.One of the Moon's rotation around its axis is also 27.5 days.