Perl/날짜 처리 종합 Edit Diff Refresh Backlink Random Search History Help Setting Hide Show Contents 1. 오늘 날짜 구하기 2. 날짜 더하고 빼기 1. 오늘 날짜 구하기 # use Date::Calc qw(Delta_Days); my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime; $year += 1900; $mon += 1; my $today; $today = sprintf("%04d.%02d.%02d.", $year, $mon, $mday); 2015.01.01. 2. 날짜 더하고 빼기 # use Date::Calc qw(Add_Delta_Days); # 30일 전 my ($dt_year, $dt_mon, $dt_mday) = Add_Delta_Days($year, $mon, $mday, -30); Date Perl 이 글에는 0 개의 댓글이 있습니다. Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus