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:
parent
0d900cecdf
commit
9edfa89744
2 changed files with 12 additions and 8 deletions
|
@ -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>
|
Thu Oct 6 09:14:20 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* time.c (Init_Time): Improve Time documentation. Patch by Shane
|
* time.c (Init_Time): Improve Time documentation. Patch by Shane
|
||||||
|
|
15
time.c
15
time.c
|
@ -4837,14 +4837,13 @@ time_load(VALUE klass, VALUE str)
|
||||||
/*
|
/*
|
||||||
* Time is an abstraction of dates and times. Time is stored internally as
|
* 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
|
* the number of seconds with fraction since the _Epoch_, January 1, 1970
|
||||||
* 00:00 UTC. Also see the library modules Date. The Time class
|
* 00:00 UTC. Also see the library modules Date. The Time class treats GMT
|
||||||
* treats GMT (Greenwich Mean Time) and UTC (Coordinated Universal Time)_[Yes,
|
* (Greenwich Mean Time) and UTC (Coordinated Universal Time) as equivalent.
|
||||||
* UTC really does stand for Coordinated Universal Time. There was a committee
|
* GMT is the older way of referring to these baseline times but persists in
|
||||||
* involved.]_ as equivalent. GMT is the older way of referring to these
|
* the names of calls on POSIX systems.
|
||||||
* 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
|
* 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.
|
* different when compared.
|
||||||
*
|
*
|
||||||
* = Examples
|
* = Examples
|
||||||
|
@ -4869,8 +4868,8 @@ time_load(VALUE klass, VALUE str)
|
||||||
* timezones instead of using the current system setting.
|
* timezones instead of using the current system setting.
|
||||||
*
|
*
|
||||||
* You can also create a new time using Time.at which takes the number of
|
* You can also create a new time using Time.at which takes the number of
|
||||||
* seconds (or fraction of seconds) since the Unix
|
* seconds (or fraction of seconds) since the {Unix
|
||||||
* Epoch[http://en.wikipedia.org/wiki/Unix_time].
|
* Epoch}[http://en.wikipedia.org/wiki/Unix_time].
|
||||||
*
|
*
|
||||||
* Time.at(628232400) #=> 1989-11-28 00:00:00 -0500
|
* Time.at(628232400) #=> 1989-11-28 00:00:00 -0500
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue