For example:
How many days between now and Christmas?
use Foo; my $christmas = Foo->date(25, Foo->december(), Foo->today()->as_year() +); my $days_to_christmas = (Foo->today() - $christmas)->in_days();
-Andrew.
In reply to Time / Date Arithmetic Module Recommendations by tomazos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |