Ever wondered how to get the date and time for your Perl scripts? Maybe you've created a custom CGI program and you want to log when and how people use it? Or perhaps you just want to grab the time and store it in a database as part of a transaction. Using Perl's built-in localtime and gmtime functions, you can get the date and time easily and convert it to whatever format your script calls for. Find out how to do it in this tutorial on telling the time with Perl's localtime.