PHP clone 日付オブジェクト 作成

/*------- 当月のクローンオブジェクト 作成 ---------*/

/*---- 当月 タイトル表示 -----*/
$dt = clone $thisMonth;
$yy_m = $dt->format('Y年m月');

/*---- 翌月 タイトル表示 -----*/
$dt = clone $thisMonth;
$next_t = $dt->modify('+1 month')->format('Y年m月');

/*---- 前月 -----*/
$dt = clone $thisMonth;
$prev = $dt->modify('-1 month')->format('Y-m');

/*---- 翌月 -----*/
$dt = clone $thisMonth;
$next = $dt->modify('+1 month')->format('Y-m');