use DateTime; use DateTime::TimeZone; my $time_zone = DateTime::TimeZone->new( name => 'local' ); my $today = DateTime->now( time_zone => $time_zone ); my $last_sunday = $today->clone; $last_sunday->subtract( days => $today->day_of_week );
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。