Processing dates and times with Perl and Time::Moment

Dave Cross just wrote a nice post about Processing dates and times with Perl. He wrote the book Data Munging with Perl some time ago.

cover of Data Munging with Perl book

He repeated three of the examples there using Time::Piece and DateTime, two modules which didn't exist when he wrote that book. I often use Time::Moment for tasks like these, so I decided to compare.

  #!/usr/bin/env perl
  use v5.32;
  use warnings;
  use Time::Moment;

  my $days = shift // 10;

  my $now = Time::Moment->now;

  # Finding the date in x days time
  say $now->plus_days($days);

  # Finding the date of the previous Saturday
  say $now->minus_days(1 + $now->day_of_week % 7);

  # Finding the date of the first Monday in a given year
  my $first_doy = $now->with_day_of_year(1)->with_precision(-3);
  say $first_doy->plus_days((8 - $first_doy->day_of_week) % 7);

How would that look in Rust?