Revelation 12:6 and 12:14 appear to reference the same wilderness retreat. And that time is also the Hosea 2 wilderness time.
So the duration is defined in 12:6 as 1260 days.
To confirm the timing we can look at Daniel 7:25 and Revelation 11:2-3.
Daniel uses that obscure phrase but Rev 11 uses 42 months and 1260 days again.
All these prophecy point to the same event, or many events happening in the same period of time.
So as I understand these verses, they are all describing the same climactic, pivotal period of time. Time, times and half a time is code for 3.5 years. It could say, "a year, two years and a half a year"
Some translations of Daniel 7:25 use the word "until" to suggest that when we enter that time, everything shifts into a transfer of power. Because in that same time frame, this happens Daniel 7:26-27
26 `But the court shall be seated, And they shall take away his dominion, To consume and destroy it forever.
27 Then the kingdom and dominion, And the greatness of the kingdoms under the whole heaven, Shall be given to the people, the saints of the Most High. His kingdom is an everlasting kingdom, And all dominions shall serve and obey Him.`