atoomic / perl-TimeDate

time & date parsing and formatting perl library
http://search.cpan.org/dist/TimeDate/
1 stars 3 forks source link

Expand str2time() to accept epoch time integer to calculate against vs internal time [rt.cpan.org #64789] #7

Open atoomic opened 4 years ago

atoomic commented 4 years ago

Migrated from rt.cpan.org#64789 (status was 'new')

Requestors:

Attachments:

From cfaber@cpan.org on 2011-01-15 01:28:12 :

Right now it's impossible to define the epoch that's used. This isn't
necessarily useful unless you have a machine with a time that is
differnt from another machine on the same network, or you pull your time
from another source, such as database, etc.

Because of this I've made some very minor backwards compatible
modifications to str2time() to accept a different initial argument.

Attached is the patch to do this.

-cf