in reply to Epoch Day Question. Also, EzDate vs DateTime
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Epoch Day Question. Also, EzDate vs DateTime
by tphyahoo (Vicar) on Aug 04, 2006 at 09:33 UTC |