Actually the gestation period for any species of fish will depend on many factors including temperature, lighting levels, nutrition etc etc and no matter how much we try to copy someone else's set up these factors will be different from one tank to another. The only way to properly establish what the gestation period for any fish is, in your set up is to record the date of the births. I keep a diary for this purpose and I record each and every brood. This gives me the opportunity to establish the gestation periods for myself.
With Poeciliids, such as swordtails, they have multiple broods from any fertlisation and they will be gravid more often than not. Therefore, the availability of a male will often not affect the gestation period.
4 - 6 weeks is a good guestimate.