A trolley moves in horizontal direction with acceleration a. A A simple pendulum of length l is suspended from the roof of the trolley. The time period of the pendulum will be