1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* time.c (Init_Time): Remove editorial comments from Time

documentation, fix link.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-10-06 00:17:41 +00:00
parent 0d900cecdf
commit 9edfa89744
2 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,8 @@
Thu Oct 6 09:17:18 2011 Eric Hodel <drbrain@segment7.net>
* time.c (Init_Time): Remove editorial comments from Time
documentation, fix link.
Thu Oct 6 09:14:20 2011 Eric Hodel <drbrain@segment7.net>
* time.c (Init_Time): Improve Time documentation. Patch by Shane

15
time.c
View file

@ -4837,14 +4837,13 @@ time_load(VALUE klass, VALUE str)
/*
* Time is an abstraction of dates and times. Time is stored internally as
* the number of seconds with fraction since the _Epoch_, January 1, 1970
* 00:00 UTC. Also see the library modules Date. The Time class
* treats GMT (Greenwich Mean Time) and UTC (Coordinated Universal Time)_[Yes,
* UTC really does stand for Coordinated Universal Time. There was a committee
* involved.]_ as equivalent. GMT is the older way of referring to these
* baseline times but persists in the names of calls on POSIX systems.
* 00:00 UTC. Also see the library modules Date. The Time class treats GMT
* (Greenwich Mean Time) and UTC (Coordinated Universal Time) as equivalent.
* GMT is the older way of referring to these baseline times but persists in
* the names of calls on POSIX systems.
*
* All times may have fraction. Be aware of this fact when comparing times
* with each other--times that are apparently equal when displayed may be
* with each other -- times that are apparently equal when displayed may be
* different when compared.
*
* = Examples
@ -4869,8 +4868,8 @@ time_load(VALUE klass, VALUE str)
* timezones instead of using the current system setting.
*
* You can also create a new time using Time.at which takes the number of
* seconds (or fraction of seconds) since the Unix
* Epoch[http://en.wikipedia.org/wiki/Unix_time].
* seconds (or fraction of seconds) since the {Unix
* Epoch}[http://en.wikipedia.org/wiki/Unix_time].
*
* Time.at(628232400) #=> 1989-11-28 00:00:00 -0500
*