Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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.

Comment on Approximate Delivery Date from USPS
Re: Approximate Delivery Date from USPS
by marto (Bishop) 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"; }

      fnord

        # 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://976154]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-12-19 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls