Re: Better perl docs?
From: Gunnar Hjalmarsson (noreply_at_gunnar.cc)
Date: 03/21/04
- Next message: Joe Cosby: "Re: Better perl docs?"
- Previous message: Will Stranathan: "Re: Better perl docs?"
- In reply to: Joe Cosby: "Better perl docs?"
- Next in thread: Joe Cosby: "Re: Better perl docs?"
- Reply: Joe Cosby: "Re: Better perl docs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 21 Mar 2004 22:47:56 GMT
Joe Cosby wrote:
> For instance, I am writing a script which needs date/time
> functionality. I am using perldoc.com to try to find out what I
> have available and how it works, so I found the Time::localtime
> package docs here
>
> http://www.perldoc.com/perl5.8.0/lib/Time/localtime.html
>
> (I know localtime() doesn't necessarily need the wrapper class, but
> just for example ... )
>
> It doesn't really tell me much, not as much as I need, anyway.
> What are the members of the class? What are the methods? Two
> methods are mentioned in passing ... apparently there's a
> localtime->year() method, but what other methods are available?
> year() appears to return a centuryless year, are there other
> methods that return a year with century?
Well, the quality of the Perl module docs varies, and the docs for the
Time::localtime module is apparently not one of the better.
> In this particular case I can probably guess my way through it; I
> need to build a string of the form YYYYMMDD
If that's all there is, personally I would probably have done it
without using a module, i.e. something like Will's suggestion. Another
option is to explore another module, such as Time::Format.
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
- Next message: Joe Cosby: "Re: Better perl docs?"
- Previous message: Will Stranathan: "Re: Better perl docs?"
- In reply to: Joe Cosby: "Better perl docs?"
- Next in thread: Joe Cosby: "Re: Better perl docs?"
- Reply: Joe Cosby: "Re: Better perl docs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|