Quick actions

cmd+k|ctrl+k

Navigation

Languages

timing_is_everything.pl

Snippet info

Language

Perl

Visibility

public

Author

grtodd

Created

2017-11-22T21:11:01Z

Updated

2017-11-22T21:13:27Z

use Time::Piece;
use Time::Seconds;
use v5.22.0;

my $time = Time::Piece->new;
my $tomorrow  = $time + ONE_DAY;
my $lastWeek  = $time - ONE_WEEK;
my $lastMonth = $time - ONE_MONTH;

say "$time \n$lastMonth";
INFO