Is it possible to rotate stepper motor for a certain period using real-clock module (DS1302). For example, I set the stepper motor rotate for 2 minute based on real time clock data. The microcontroller I use is Arduino.
If your only goal is to measure 2 minutes then the day of the week, leap-year compensation etc. are irrelevant.
The system clock of the microcontroller is stabilized by an external quarz (16 MHz if you are using the Nano board, for example), so by using the internal timer 1 you can measure 4 s quite accurately in the background. Clocking the timer by 16 MHz / 1024 = 15625 Hz, counting the timer matches with the value 62499 by software, and stopping the stepper process when the count reaches 30 (30 * 4 s = 120 s = 2 min) is all you need.
So you can do it without the DS1302, even more accurately because there is no latency introduced by serial communication.
It would be a different matter if you are aiming at a battery powered timer which can be programmed to switch the stepper on after a long time (e.g. a year), and off 2 minutes later. In this case, a low power RTC and a microcontroller in sleep mode might be the best solution. However, in order to wake up the microcontroller only once each week or even each month, an RTC providing alarm function and an interrupt output would be required, e.g. PCF2123.