Except insofar as time is an element of the offense charged, any allegation of the time of the commission of the offense, whether stated absolutely or under a videlicet, shall be sufficient to sustain proof of the charge at any time before or after the date or dates alleged, prior to the finding of the indictment or the filing of the complaint and within the period of limitations provided by law: Provided, That the court may on motion require the prosecution to state the time or identify the occasion as nearly as the circumstances will permit, to enable the accused to meet the charge.