Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Expire date of domain

by blue_cowdawg (Monsignor)
on Oct 13, 2014 at 14:14 UTC ( #1103626=note: print w/replies, xml ) Need Help??


in reply to Expire date of domain

Seems a quick RTFM is in order here. Please note the following:

$expiration_obj = expire_date( 'microsoft.com' ); $expiration_str = expire_date( 'microsoft.com', '%Y-%m-%d' ); $expiration_obj = expdate_int( $whois_text, 'com' ); $expiration_str = expdate_fmt( $whois_text, 'ru', '%Y-%m-%d' +);
This works fine:
# perl -MNet::Domain::ExpireDate -e 'print expire_date("microsoft.com" +,"%Y-%m-%d"),"\n"' 2021-05-03


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; Blog: http://blog.berghold.net Warning: No political correctness allowed.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1103626]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2020-05-30 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?