Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Approximate Delivery Date from USPS

by remya (Initiate)
on Jun 14, 2012 at 09:15 UTC ( #976154=perlquestion: print w/replies, xml ) Need Help??
remya has asked for the wisdom of the Perl Monks concerning the following question:

Hi, How can i calculate the approximate delivery date from usps using perl. Is there any perl module for the same.

Replies are listed 'Best First'.
Re: Approximate Delivery Date from USPS
by marto (Archbishop) on Jun 14, 2012 at 09:21 UTC
      Thanks your reply.. But I coudn't see a solution for delivery date there.

        Have you examined what their APIs gives you access to?

Re: Approximate Delivery Date from USPS---OT rant
by zentara (Archbishop) on Jun 14, 2012 at 10:29 UTC
    the approximate delivery date from usps

    I order online very often, and I must say for the USPS, approximate is the right term to describe their tracking system. I've checked USPS tracking many times. Sometimes it said the package was already delivered, and it still didn't come for a week. Other times, it said delivery was next week, and it came that day.

    In comparison, UPS tracking is right on time, almost to the minute.

    So for the USPS, tracking is essentially useless, they need some Perl programmers and some scanners. :-)

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh
      So Business::Shipping::USPS_Online::Tracking isn't what you're looking for? However, I agree with zentara; I don't think you'd be far off with:
      use DateTime::Event::Random; use strict; my $dt; if (exists (USPS)) { # they could be bankrupt do { $dt = DateTime::Event::Random->datetime( after => DateTime->now ) +; } until $dt->day_of_week != 7; # sunday } else { print "Never, sorry\n"; }


        # they could be bankrupt
        <rant extended...> Surely someone there (or in Congress) recognizes that they're on the same course the railroads took in the '50s, et seq.:
        • Reduced service -> customers find alternate solutions ->reduced service
        • Abandonments
        • Pricing favoring a customers with alternates, and discouraging customers with limited alternatives
        • An assumption that technological advances (aka: www) provide inexpensive and efficient service to customers not targetted for service (ie, in the RR analogy, 'not on the main line').

        Anyone else love what's happening as USPS?

Re: Approximate Delivery Date from USPS
by Anonymous Monk on Jun 15, 2012 at 13:16 UTC
    perl -e 'print int(rand()*1000) . " days";'


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://976154]
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2018-06-18 06:48 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.