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

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

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. engsol
    Replies:
    2
    Views:
    1,189
    Dan Bishop
    Jan 26, 2004
  2. flamesrock
    Replies:
    8
    Views:
    818
    Hendrik van Rooyen
    Nov 24, 2006
  3. RSoIsCaIrLiIoA
    Replies:
    8
    Views:
    437
    Mark McIntyre
    Dec 21, 2005
  4. Matthew Keene

    Possible bug in Date/ParseDate

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

    ParseDate in local format...

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

    ParseDate.parsedate() and Time.now()

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

    parsedate (LoadError) 1.9.2

    Siddharth Karandikar, Dec 16, 2010, in forum: Ruby
    Replies:
    1
    Views:
    238
  8. David Joseph Bonnici
    Replies:
    1
    Views:
    430
    Gunnar Hjalmarsson
    May 15, 2005
Loading...