Weather conditions last for five turns, same as X and Y, unless an item that prolongs the effects is in play (e.g. Smooth Rock prolongs Sandstorm). Two exceptions are Harsh Sunshine and Heavy Rain, which last as long as the Ability bearers are on the field, and ends when they switch out. This means these two weather conditions could possibly stay in effect uninterrupted for the entire battle.