Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > CPAN & Date::Time

Reply
Thread Tools

CPAN & Date::Time

 
 
check
Guest
Posts: n/a
 
      01-30-2004
Hi,

Can't find anything similar to this problem in these groups, so I'm
hoping someone can help me...

I'm trying to install the Date::Time module and it dependencies via
CPAN.

When I enter:

# perl -MCPAN -e 'install Date::Time'

I get the message:

The module Date::Time isn't available on CPAN.

So, in a CPAN shell I then enter:

i /Date::Time/

....and the module is listed correctly. What am I doing wrong?

TIA,

check.
 
Reply With Quote
 
 
 
 
James Willmore
Guest
Posts: n/a
 
      01-30-2004
On Fri, 30 Jan 2004 08:30:49 -0800, check wrote:

> Hi,
>
> Can't find anything similar to this problem in these groups, so I'm
> hoping someone can help me...
>
> I'm trying to install the Date::Time module and it dependencies via
> CPAN.
>
> When I enter:
>
> # perl -MCPAN -e 'install Date::Time'
>
> I get the message:
>
> The module Date::Time isn't available on CPAN.
>
> So, in a CPAN shell I then enter:
>
> i /Date::Time/
>
> ...and the module is listed correctly. What am I doing wrong?
>
> TIA,
>
> check.


DateTime, instead of Date::Time ... I think

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
Whenever you find that you are on the side of the majority, it is
time to reform. -- Mark Twain

 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      01-30-2004

(check) wrote:
> I'm trying to install the Date::Time module and it dependencies via
> CPAN.
>
> When I enter:
>
> # perl -MCPAN -e 'install Date::Time'
>
> I get the message:
>
> The module Date::Time isn't available on CPAN.
>
> So, in a CPAN shell I then enter:
>
> i /Date::Time/
>
> ...and the module is listed correctly. What am I doing wrong?


cpan> i /Date::Time/
Module id = Date::Time
DESCRIPTION Lightweight normalised datetime data type
CPAN_USERID TOBIX (Tobias Brox <>)
CPAN_VERSION undef
CPAN_FILE Contact Author Tobias Brox <>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DSLI_STATUS idpO (idea,developer,perl,object-oriented)
^^^^
INST_FILE (not installed)

So, as it said, the module is not available via CPAN.

Ben

--
For the last month, a large number of PSNs in the Arpa[Inter-]net have been
reporting symptoms of congestion ... These reports have been accompanied by an
increasing number of user complaints ... As of June,... the Arpanet contained
47 nodes and 63 links. [ftp://rtfm.mit.edu/pub/arpaprob.txt] *
 
Reply With Quote
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      01-30-2004
Ben Morrow wrote:
> So, as it said, the module is not available via CPAN.


But it can of course be downloaded from CPAN...

http://search.cpan.org/~tobix/OO-DateTime-0.01/

This is the top of the Time.pm file:

package Date::Time::UnixTime;

# Some methods dealing with Unix timestamps are to be
# implemented here.

1;

package Date::Time;

Maybe that explains the failure to download it using CPAN.pm?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      01-30-2004
Gunnar Hjalmarsson wrote:
> Ben Morrow wrote:
>> So, as it said, the module is not available via CPAN.

>
> But it can of course be downloaded from CPAN...
>
> http://search.cpan.org/~tobix/OO-DateTime-0.01/


On the other hand, the module does not do anything. When it was
uploaded at 2 March 2000, it was said to be "at the idea/design stage"...

So OP should better find some other module, anyway.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
check
Guest
Posts: n/a
 
      02-02-2004
James Willmore <> wrote in message news:< ia.net>...
> On Fri, 30 Jan 2004 08:30:49 -0800, check wrote:
>
> > Hi,
> >
> > Can't find anything similar to this problem in these groups, so I'm
> > hoping someone can help me...
> >
> > I'm trying to install the Date::Time module and it dependencies via
> > CPAN.
> >
> > When I enter:
> >
> > # perl -MCPAN -e 'install Date::Time'
> >
> > I get the message:
> >
> > The module Date::Time isn't available on CPAN.
> >
> > So, in a CPAN shell I then enter:
> >
> > i /Date::Time/
> >
> > ...and the module is listed correctly. What am I doing wrong?
> >
> > TIA,
> >
> > check.

>
> DateTime, instead of Date::Time ... I think


Thanks, you are correct. Got myself in a bit of a muddle about this -
Your help is much appreciated.

check.

>
> --
> Jim
>
> Copyright notice: all code written by the author in this post is
> released under the GPL. http://www.gnu.org/licenses/gpl.txt
> for more information.
>
> a fortune quote ...
> Whenever you find that you are on the side of the majority, it is
> time to reform. -- Mark Twain

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 01-24-2011 11:00 PM
on windows 7 / cygwin / perl / cpan - cannot make cpan work SVCitian Perl Misc 1 10-22-2010 03:59 PM
rt.cpan.org, search.cpan.org: why so unuseable? Ben Bullock Perl Misc 12 07-08-2008 12:51 PM
Is there a better way to search CPAN than search.cpan.org? usenet@DavidFilmer.com Perl Misc 5 10-12-2005 04:50 AM
Upgrading to CPAN.pm v1.76 install Bundle::CPAN fails carl d. Perl Misc 1 05-10-2005 09:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57