I found that RTC D1307 code library doesnt work in arduino micro but it is working in arduino uno?
which pins are used for RTC DS1307 in arduino micro?... i know that arduino Uno uses A4& A5.. does micro use the same pins?
You may have to connect to
[Pin 2 - MICRO] -- (SDA) -- [A4 -UNO]
[Pin 3 - MICRO] -- (SCL) -- [A5- Uno].
The link below will be helpful for pin outs:

Micro and UNO have SPI and I2C on different Pins.