Net::Domain::ExpireDate - Perl extension for obtaining expiration date of domain names
use Net::Domain::ExpireDate; $date = expire_date( 'microsoft.com' ); $str = expire_date( 'microsoft.com', '%Y-%m-%d' ); $date = expdate_int( $whois_text, 'com' ); $str = expdate_fmt( $whois_text, 'ru', '%Y-%m-%d' );
Net::Domain::ExpireDate gets WHOIS information of given domain using Net::Whois::Raw and tries to obtain expiration date of domain. Unfortunately there are too many different whois servers which provides whois info in very different formats. Net::Domain::ExpireDate knows more than 40 different formats of expiration date representation provided by different servers (almost all gTLD registrars and some ccTLD registrars are covered). If an expiration date format is unknown to Net::Domain::ExpireDate - then heuristics is used to determine expiration date.
"$date" in synopsis is an object of type Time::Piece.
Walery Studennikov, <despair@regtime.net>
Net::Whois::Raw, Time::Piece.
To install Net::Domain::ExpireDate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Domain::ExpireDate
CPAN shell
perl -MCPAN -e shell install Net::Domain::ExpireDate
For more information on module installation, please visit the detailed CPAN module installation guide.