a plant is whatever sex it is.
changing light hours down will only get the plant to flower and show the sex.
stress can induce maleness-a self defence mechanism to ensure a new generation.
femaleness can be increased with hormones with varying sucess.
hope this helps.