fork download
  1. use strict;
  2. use warnings;
  3. use feature qw(say);
  4.  
  5. use Time::Piece;
  6. use Time::Seconds;
  7.  
  8. say "Today is " . localtime;
  9. say " Yest is " . (localtime() - ONE_DAY);
  10.  
Success #stdin #stdout 0.03s 4928KB
stdin
Standard input is empty
stdout
Today is Wed Sep 17 02:48:12 2014
 Yest is Tue Sep 16 02:48:12 2014