<nobu.nokada / softhome.net> wrote in message news:200407120125.i6C1PXGg010327 / sharui.nakada.niregi.kanuma.tochigi.jp...
> Hi,
>
> At Sat, 10 Jul 2004 22:02:29 +0900,
> daz wrote in [ruby-talk:105895]:
> > require 'ParseDate'
>
>   $ ruby -rParseDate -ep
>   ruby: No such file to load -- ParseDate (LoadError)
>
> No such library is bundled.
>
> --
> Nobu Nakada
>
>


Thanks Nobu, is this OK ? (of course ;)

$ ruby -rparsedate -ep

(Windows doesn't care too much about case, but I should.)


daz


# parsedate.rb: Written by Tadayoshi Funaba 2001, 2002
# $Id: parsedate.rb,v 2.6 2002-05-14 07:43:18+09 tadf Exp $

require 'date/format'

module ParseDate

  def parsedate(str, comp=false)
    Date._parse(str, comp).
      values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
  end

  module_function :parsedate

end