[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02787] Time Conversions

From: "David Douthitt" <DDouthitt@...>
Date: 2000-05-12 15:49:23 UTC
List: ruby-talk #2787
Is there a simple straightforward one-liner of a way to convert a string =
to a Time instance?

I'd like something like this: given "Fri May 12 2000 10:48a" it woud =
return a Time instance.

t =3D Time.new
t.set_string("Fri May 12 2000 10:48a")
p t

returns the time as analyzed from the string.....

In This Thread

Prev Next