ParseDate and Time

Discussion in 'Ruby' started by Jason Williams, Aug 20, 2003.

  1. 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.
    Jason Williams, Aug 20, 2003
    #1
    1. Advertising

  2. Jason Williams

    Paul Brannan Guest

    On Wed, Aug 20, 2003 at 11:28:50PM +0900, Jason Williams wrote:
    > 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
    Paul Brannan, Aug 20, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. flamesrock
    Replies:
    8
    Views:
    450
    Hendrik van Rooyen
    Nov 24, 2006
  2. Matthew Keene

    Possible bug in Date/ParseDate

    Matthew Keene, May 14, 2005, in forum: Ruby
    Replies:
    5
    Views:
    179
    Matthew Keene
    May 19, 2005
  3. Josselin

    ParseDate in local format...

    Josselin, Jul 25, 2006, in forum: Ruby
    Replies:
    2
    Views:
    143
    Josselin
    Jul 26, 2006
  4. Patrick Spence

    ParseDate.parsedate() and Time.now()

    Patrick Spence, Aug 11, 2006, in forum: Ruby
    Replies:
    3
    Views:
    141
    Austin Ziegler
    Aug 15, 2006
  5. Siddharth Karandikar

    parsedate (LoadError) 1.9.2

    Siddharth Karandikar, Dec 16, 2010, in forum: Ruby
    Replies:
    1
    Views:
    148
Loading...

Share This Page