ParseDate and Time

J

Jason Williams

Why don't ParseDate and Time play nicely together?

I'd have thought ParseDate could output a Time object, or at least
Time could accept the array that ParseDate emits. Am I attempting
things in the wrong way, missing something important, or using
the wrong classes/modules?

Cheers,
Jason.
 
P

Paul Brannan

Why don't ParseDate and Time play nicely together?

I'd have thought ParseDate could output a Time object, or at least
Time could accept the array that ParseDate emits. Am I attempting
things in the wrong way, missing something important, or using
the wrong classes/modules?

I rarely use ParseDate directly and instead use Time.parse() from
time.rb (which is implemented using ParseDate).

Paul
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top