http://www.perlmonks.org?node_id=591162


in reply to Seeking an example of Time::Period usage

Time::Period:
The time is specified as per the time() function, which is assumed to be the number of non-leap seconds since January 1, 1970.
DateTime::datetime returns a formatted string, e.g. 2006-09-11T00:00:00. You should be using $dt->epoch instead.

Replies are listed 'Best First'.
Re^2: Seeking an example of Time::Period usage
by jking (Novice) on Dec 21, 2006 at 19:18 UTC
    Works great. Thanks. I totally missed that and now I see it after you've pointed it out. Cheers.