This is a petition for a writ of mandate to require the respondent court to dismiss a civil action as to the petitioner for the failure of the plaintiff to *128 bring such action to trial within five years after the filing thereof.
On February 7, 1952, an action for personal injuries was commenced in respondent court entitled “Bussell Georgianna, Plaintiff, vs. Floyd C. Fisher, John A. McDonald, et al, Defendants.” The complaint in said action alleges that the plaintiff was a painter employed by the painting subcontractor on a construction job and was injured in falling from a stepladder as a result of the negligence of a workman laying the subflooring in the building in which the plaintiff was working. It is alleged that the defendant Fisher was the general contractor and the defendant McDonald was a subcontractor and that the plaintiff is in doubt as to which of said defendants is liable. On September 8,1952, defendant Fisher, the petitioner herein, appeared in said action by filing his demurrer to the complaint and thereafter, on June 30, 1953, the petitioner filed his answer to an amended complaint. Defendant McDonald was served with summons and complaint on February 23, 1954, and in due course appeared by filing his answer. Defendants Fisher and McDonald have been and now are each represented by separate counsel in the proceedings before the trial court. The matter was set for trial. on October 30, 1956, but prior thereto a written stipulation was entered into between plaintiff, Fisher and McDonald that the trial be continued and placed off calendar subject to being reset for trial after 30 days. On December 17,1956, a written stipulation was entered into by plaintiff, Fisher and McDonald setting said action for a pretrial hearing on March 11, 1957, and, upon the filing of said stipulation, the respondent court, on its own motion, reset said action for trial to be held on May 16, 1957. On or about March 8, 1957, counsel for petitioner advised counsel for plaintiff that petitioner intended to move to dismiss the action as to him in accordance with the provisions of Code of Civil Procedure, section 583, and it was thereupon agreed by counsel for all appearing parties that the pretrial hearing set for March 11, 1957, be placed off calendar. Accordingly, on March 11, 1957, the pretrial hearing was placed off calendar and the trial date of May 16, 1957, was vacated by order of the respondent court. On May 21, 1957, pursuant to written notice, the petitioner and his codefendant McDonald each moved to dismiss the action for lack of prosecution pursuant to the provisions of section 583, the five years from the filing of the action having elapsed on February 8,1957. In opposition to the motions, the plaintiff *129 filed affidavits setting forth the facts of the previous stipulation for a pretrial hearing and affidavits alleging the absence of the defendant McDonald from the State of California for a period of approximately two years prior to the service of summons and complaint on him in February, 1954. Bach motion was denied by the court, the grounds of denial being stated in the minute order as follows: “In view of the scope of Pre-trial and its purpose (Eule 8.2, 8.4, 8.6, 8.8 and the fact that one purpose is to fix the definite trial date (Eule 8.10) a stipulation to fix the Pre-trial date the five year period operates to toll the bar of C.C.P. 583; as does absence by a defendant from the state.”
Section 583 of the Code of Civil Procedure provides that: “. . . Any action . . . shall be dismissed by the court in which the same shall have been commenced . . . unless such action is brought to trial within five years after the plaintiff has filed his action, except where the parties have filed a stipulation in writing that the time may be extended and except where it be shown that the defendant has been absent from the state or concealed therein and his whereabouts unknown to the plaintiff and not discoverable . . . upon due diligence, in which event said period of absence or concealment shall not be a part of said five-year period.”
The provisions of section 583, requiring dismissal if an action is not brought to trial within five years after the filing of the complaint, unless the parties have stipulated in writing for an extension of the period, are mandatory where applicable
(Rose
v.
Knapp,
*130
The real parties in interest have not appeared in this proceeding but it is urged on behalf of respondent court that it was within the discretion of the trial court to determine whether the alleged absence of the codefendant McDonald from the State of California tolled the statute as to the petitioner. “ It has been established by ease law that each defendant requiring dismissal must ask it of the superior court and that a defendant so asking is entitled to have his right to dismissal determined as to himself alone
(Larkin
v.
Superior Court,
The affidavits filed by the plaintiff in opposition to the separate motions of petitioner and his codefendant McDonald were sufficient to sustain an implied finding that the codefendant McDonald was absent from the State of California for approximately two years after the filing of the action and before service of summons and complaint upon him in February of 1954. As previously stated, the action was set for trial as against petitioner and McDonald in October, 1956. There is no contention in any of said affidavits in opposition to the motion to dismiss that it would have been impossible, impracticable or futile to bring the action to trial as against petitioner at any time after the same was at issue on the amended complaint in 1953. It is a general rule that in a civil action against two or more defendants the trial court has discretion to order separate trials as between the plaintiff and separate defendants (Code Civ. Proc., § 579;
Bell
v.
Staacke,
As we have seen, the petitioner, within the five-year statutory period, stipulated to a pretrial hearing to be held on March 11, 1957, which was more than five years after the filing of the action, and following the filing of such stipulation the court on its own motion and prior to the pretrial hearing set May 16, 1957, as the date of trial. Further, by agreement of counsel on March 11, 1957, the pretrial hearing was placed off calendar and as a result thereof the trial date of May 16, 1957, was vacated by the respondent court. In denying petitioner’s motion to dismiss, the above quoted minute order of the trial court would indicate its opinion that the stipulation for the pretrial hearing for a date after the expiration of the statutory period constituted a written stipulation within the provisions of section 583 extending the statutory period to the time that the date of trial would be fixed at the pretrial hearing. Petitioner contends that the stipulation for the pretrial hearing was not “a written stipulation extending the time for trial beyond the statutory period of five years.”
(Hastings
v.
Superior
Court,
It is well established that a written stipulation extending the statutory period does not operate as a waiver for all future time and that such a stipulation is operative only to the date specified therein.
Miller & Lux Inc.
v.
Superior Court,
Inasmuch as on May 21,1957, when petitioner herein *133 moved to dismiss under section 583, there was no stipulation extant extending the time for trial nor was there on said date a date of trial set pursuant to any written stipulation or pursuant to a pretrial hearing, petitioner was within its rights to move for a dismissal and having been denied that right by the trial court is entitled to such relief in this proceedings.
Let a peremptory writ of mandate issue as prayed for.
Fox, Acting P. J., and Ashburn, J., concurred.
