========================================================<br /> Time::Convert (Version: $VERSION) - Matthew Fenton 2005<br />========================================================
So it prints three whole lines all together. That's only two more than the MSN module does (and if they follow the pattern with the Yahoo module, those two together would print 2 lines ).
Although the module really could do without it, you're supposed to just have a version function to get the version. Very few other modules print things on startup. _________________ Current Site (2008) http://www.cuvou.com/
Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Sat Apr 02, 2005 7:11 pm Post subject:
QUOTE(Cer @ Apr 2 2005, 10:58 AM)
Basic, it prints this:
Code:
========================================================<br /> Time::Convert (Version: $VERSION) - Matthew Fenton 2005<br />========================================================
So it prints three whole lines all together. That's only two more than the MSN module does (and if they follow the pattern with the Yahoo module, those two together would print 2 lines ).
Although the module really could do without it, you're supposed to just have a version function to get the version. Very few other modules print things on startup. [right][snapback]47482[/snapback][/right]
In fact the only reason MSN.pm prints it is for debuging. Often people post the output, if the module prints its version then it is easy to see what they are using. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com
I don't really see any point in this code. First, it's not a module, it's a command. Second, it's tied to text input and text output from a bot, so it doesn't fit the concept of a self-contained module. Third, it expects someone to type in some time in seconds?! Hmm. Finally, there are dozens of modules on CPAN that work with time, date, duration and such. Why not use one of those?
didnt know localtime TOOK time! [right][snapback]47753[/snapback][/right]
I thought I told you that before.
Yeah... and to find out when epoch time started, do localtime(0). localtime assumes the current time(), although some people put it in anyway like localtime(time). _________________ Current Site (2008) http://www.cuvou.com/