CPAN & Date::Time

C

check

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.
 
J

James Willmore

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
 
B

Ben Morrow

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 <[email protected]>)
CPAN_VERSION undef
CPAN_FILE Contact Author Tobias Brox <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DSLI_STATUS idpO (idea,developer,perl,object-oriented)
^^^^
INST_FILE (not installed)

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

Ben
 
G

Gunnar Hjalmarsson

Ben said:
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?
 
C

check

James Willmore said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top