tomazos has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Time / Date Arithmetic Module Recommendations
by ikegami (Patriarch) on Oct 09, 2008 at 03:36 UTC | |
|
Re: Time / Date Arithmetic Module Recommendations
by smiffy (Pilgrim) on Oct 09, 2008 at 05:54 UTC | |
|
Re: Time / Date Arithmetic Module Recommendations
by GrandFather (Saint) on Oct 09, 2008 at 03:33 UTC | |
by ikegami (Patriarch) on Oct 09, 2008 at 03:42 UTC | |
by GrandFather (Saint) on Oct 09, 2008 at 03:46 UTC | |
by ikegami (Patriarch) on Oct 09, 2008 at 04:05 UTC | |
|
Re: Time / Date Arithmetic Module Recommendations
by andreas1234567 (Vicar) on Oct 09, 2008 at 07:49 UTC |