Seven lone Time methods

T

Trans

Time is a core class of Ruby's. So why do we have to

require 'time'

in order to gain these seven methods?

httpdate, iso8601, parse, rfc2822, rfc822, xmlschema, zone_offset

What aren't they already there? (especailly #parse)

Thanks,
T.
 
N

nobu.nokada

Hi,

At Mon, 15 Aug 2005 21:16:13 +0900,
Trans wrote in [ruby-talk:152194]:
Time is a core class of Ruby's. So why do we have to

require 'time'

in order to gain these seven methods?

httpdate, iso8601, parse, rfc2822, rfc822, xmlschema, zone_offset

What aren't they already there? (especailly #parse)

I guess they are easier in ruby than C.
 
A

Austin Ziegler

At Mon, 15 Aug 2005 21:16:13 +0900,
Trans wrote in [ruby-talk:152194]:
Time is a core class of Ruby's. So why do we have to

require 'time'

in order to gain these seven methods?

httpdate, iso8601, parse, rfc2822, rfc822, xmlschema, zone_offset

What aren't they already there? (especailly #parse)
=20
I guess they are easier in ruby than C.

Fair enough, but is there no way to make these available by default,
just the same way that Time is?

-austin
--=20
Austin Ziegler * (e-mail address removed)
* Alternate: (e-mail address removed)
 
G

gabriele renzi

Austin Ziegler ha scritto:
Fair enough, but is there no way to make these available by default,
just the same way that Time is?

actually I'd like to have #parse as builtin, but whay would we need
xmlschema or httpdate time extension built-in ?
They make more sense in an extension to me since..

PS
mh well, we could make xml and http libs parte of the core maybe... ;)
 
T

Tanaka Akira

Trans said:
Time is a core class of Ruby's. So why do we have to

require 'time'

in order to gain these seven methods?

httpdate, iso8601, parse, rfc2822, rfc822, xmlschema, zone_offset

matz against that a builtin method which name contains RFC number.
[ruby-list:15923]
 

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,176
Messages
2,570,947
Members
47,501
Latest member
Ledmyplace

Latest Threads

Top