doc/main-rdoc/classes/Time.src/M000091.html in facets-0.7.1 vs doc/main-rdoc/classes/Time.src/M000091.html in facets-0.7.2
- old
+ new
@@ -3,17 +3,16 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>beginning_of_month (Time)</title>
+ <title>years_ago (Time)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/facet/times.rb, line 238</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">beginning_of_month</span>
- <span class="ruby-comment cmt">#self - ((self.mday-1).days + self.seconds_since_midnight)</span>
- <span class="ruby-identifier">change</span>(<span class="ruby-identifier">:mday</span> =<span class="ruby-operator">></span> <span class="ruby-value">1</span>,<span class="ruby-identifier">:hour</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:min</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:sec</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:usec</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>)
+ <pre><span class="ruby-comment cmt"># File lib/facet/times.rb, line 185</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">years_ago</span>(<span class="ruby-identifier">years</span>)
+ <span class="ruby-identifier">change</span>(<span class="ruby-identifier">:year</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">year</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">years</span>)
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file