Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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
Domain Nodelet?
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 perusing the Monastery: (2)
As of 2023-03-26 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?