Sha256: 901d5c0b5da7de850e716bc478afdd2c5ece81bf603cea6131d10c46d1a647a3

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "DTD/xhtml1-transitional.dtd">

<!--

    timestamp (RQ::Util)

  -->
<html>
<head>
	<title>timestamp (RQ::Util)</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<link rel="stylesheet" href="http://www.FaerieMUD.org/stylesheets/rdoc.css" type="text/css" />
</head>
<body>
	<pre><span class="ruby-comment cmt"># File lib/rq-2.3.1/util.rb, line 109</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">timestamp</span> <span class="ruby-identifier">time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>
<span class="ruby-comment cmt">#--{{{</span>
        <span class="ruby-identifier">usec</span> = <span class="ruby-node">&quot;#{ time.usec }&quot;</span>
        <span class="ruby-identifier">usec</span> <span class="ruby-operator">&lt;&lt;</span> (<span class="ruby-value str">'0'</span> <span class="ruby-operator">*</span> (<span class="ruby-value">6</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">usec</span>.<span class="ruby-identifier">size</span>)) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">usec</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">6</span> 
        <span class="ruby-identifier">time</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">'%Y-%m-%d %H:%M:%S.'</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">usec</span>
<span class="ruby-comment cmt">#--}}}</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rq-3.0.0 doc/classes/RQ/Util.src/M000049.html
rq-3.1.0 doc/classes/RQ/Util.src/M000049.html