That won't do what the original question was asking for. Remember a CGI program runs on the server, so that module would render server time. The questioner wanted the time on the client, which implies asking the user agent (browser) what the time is on its box.
To my knowledge, that does require Javascript or Java running on the client machine. I don't know of a way to ask the user agent to run a Perl program.