Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Ruby

ile was created, modified, or last accessed

1
2
3
File::ctime( "test.txt" ) # => Fri May 09 10:06:37 -0700 2008
File::mtime( "text.txt" ) # => Fri May 09 10:44:44 -0700 2008
File::atime( "text.txt" ) # => Fri May 09 10:45:01 -0700 2008
https://snipt.net/embed/0d46e07afc4004fa36ab1d506d5f06a6/
https://snipt.net/raw/0d46e07afc4004fa36ab1d506d5f06a6/
0d46e07afc4004fa36ab1d506d5f06a6
rb
Ruby
4
2016-12-02T16:05:16
True
False
False
/api/public/snipt/1456/
ile-was-created-modified-or-last-accessed
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="no">File</span><span class="o">::</span><span class="n">ctime</span><span class="p">(</span> <span class="s2">&quot;test.txt&quot;</span> <span class="p">)</span> <span class="c1"># =&gt; Fri May 09 10:06:37 -0700 2008</span> </span><span id="L-2"><a name="L-2"></a><span class="no">File</span><span class="o">::</span><span class="n">mtime</span><span class="p">(</span> <span class="s2">&quot;text.txt&quot;</span> <span class="p">)</span> <span class="c1"># =&gt; Fri May 09 10:44:44 -0700 2008</span> </span><span id="L-3"><a name="L-3"></a><span class="no">File</span><span class="o">::</span><span class="n">atime</span><span class="p">(</span> <span class="s2">&quot;text.txt&quot;</span> <span class="p">)</span> <span class="c1"># =&gt; Fri May 09 10:45:01 -0700 2008</span> </span></pre></div> </td></tr></table>
i/o, ruby
Copyrighted, illegal, or inappropriate content? Email [email protected].