在Perl中你可以做到:
my $current_time = DateTime->now(); my $mdy = $current_time->mdy("/");
在Ruby中最简单的方法是什么?
ruby time
ruby ×1
time ×1