Sounds like you have a date, such as "2006-08-03" and need to convert it to something that ensures that "2006-07-31" is 4 times the distance away that "2006-08-02" is. Assuming "day" as the unit, then it would be exactly four away. Sounds like what you want is:
Perhaps I'm missing something, though ;-)my $epoch_day = int($datetime_obj->epoch / 24 / 60 / 60);
In reply to Re: Epoch Day Question. Also, EzDate vs DateTime
by Tanktalus
in thread Epoch Day Question. Also, EzDate vs DateTime
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |