title: How to get the current time in date time in Perl
body: <p>I'm writing a Perl script that takes the current time in the datetime format. How can I get the current time stored to a variable in the datetime format in Perl?</p>