/
clj-hector.time-api.html
156 lines (135 loc) · 5.62 KB
/
clj-hector.time-api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<html>
<head>
<title>clj-hector.time - clj-hector API documentation</title>
<link href="static/favicon.png" rel="icon" />
<link href="static/favicon.png" rel="shortcut icon" />
<link media="all" type="text/css" href="static/clojure.css" rel="stylesheet" />
<link media="all" type="text/css" href="static/wiki.css" rel="stylesheet" />
<link media="all" type="text/css" href="static/internal.css" rel="stylesheet" />
<style>.menuWrapper{height: 36px;}</style>
<!--[if lte IE 6]>
<link rel="stylesheet" href="http://www.wikispaces.com/_/2009051601/s/internal_ie.css" type="text/css" />
<![endif]-->
</head>
<!--
This document was auto-generated from the source by the clojure autodoc system.
To report errors or ask questions about the overall documentation structure, formatting,
etc., contact Tom Faulhaber (google mail name: tomfaulhaber).
For errors in the documentation of a particular namespace, contact the author of that
namespace.
-->
<body>
<div id="AllContentContainer">
<div id="Header">
<a id="Logo" href="index.html"><img alt="Clojure" height="100" width="100" src="static/clojure-icon.gif" /></a>
<h1><a title="page header title" id="page-header" href="index.html">clj-hector</a></h1>
</div>
<div id="leftcolumn"><div style="text-align: center;"></div>
<div class="menu">
<div class="WikiCustomNav WikiElement wiki">
<span class="toc-header"><span id="project-name">clj-hector</span> <span id="version"></span> API</span><br />
<ul>
<li><a class="wiki_link" href="index.html">Overview</a></li>
<li><a class="wiki_link" href="api-index.html">API Index</a></li>
</ul>
<div class="NamespaceTOC">
<span class="toc-header">Namespaces</span>
<ul id="left-sidebar-list">
<li><a href="clj-hector.consistency-api.html" class="wiki_link">clj-hector.consistency</a></li><li><a href="clj-hector.core-api.html" class="wiki_link">clj-hector.core</a></li><li><a href="clj-hector.ddl-api.html" class="wiki_link">clj-hector.ddl</a></li><li><a href="clj-hector.serialize-api.html" class="wiki_link">clj-hector.serialize</a></li><li><a href="clj-hector.time-api.html" class="wiki_link">clj-hector.time</a></li>
</ul>
</div>
<a href="http://clojure.org" class="wiki_link">Clojure Home</a>
</div>
</div>
</div>
<div id="rightcolumn">
<div id="Content">
<div class="contentBox"><div class="innerContentBox">
<div id="content_view" class="wiki wikiPage">
<div id="right-sidebar"><div id="toc">
<h1 class="nopad">Table of Contents</h1>
<div style="margin-left: 1em;" class="toc-section">
<a href="#toc0">Overview</a>
<div style="margin-left: 1em;" class="toc-entry">
<a href="#clj-hector.time/epoch">epoch</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#clj-hector.time/from-bytes">from-bytes</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#clj-hector.time/get-date">get-date</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#clj-hector.time/to-bytes">to-bytes</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#clj-hector.time/uuid">uuid</a>
</div>
<br />
</div>
</div>
</div>
<div id="content-tag"><h1 id="overview">API for <span id="namespace-name">clj-hector.time</span>
- <span id="header-project">clj-hector</span> <span id="header-version"></span>
</h1>
<span id="author-line">by <span id="author-name">Paul Ingles</span><br /></span>
<br />Full namespace name: <span id="long-name">clj-hector.time</span>
<p></p>
<h2>Overview</h2>
<pre id="namespace-docstr"></pre>
<br />
<h2>Public Variables and Functions</h2>
<div id="var-entry">
<br />
<hr />
<h2 id="clj-hector.time/epoch">epoch</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (epoch _)
</pre>
<pre id="var-docstr">Returns the milliseconds since epoch. Epoch can be either
a java.util.Date instance, or an org.joda.time.ReadableInstant</pre>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clj-hector.time/from-bytes">from-bytes</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (from-bytes bytes)
</pre>
<pre id="var-docstr">Deserializes a TimeUUID object from a byte array.</pre>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clj-hector.time/get-date">get-date</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (get-date object)
</pre>
<pre id="var-docstr">Retrieves the date from a TimeUUID object. TimeUUID can be provided as either
a UUID instance, or serialized as a byte array.</pre>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clj-hector.time/to-bytes">to-bytes</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (to-bytes uuid)
</pre>
<pre id="var-docstr">Converts a TimeUUID object to a byte array suitable for serializing.</pre>
</div><div id="var-entry">
<br />
<hr />
<h2 id="clj-hector.time/uuid">uuid</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (uuid time)
</pre>
<pre id="var-docstr">Creates a UUID from an epoch value</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="foot">
<div style="text-align: center;" id="copyright">No copyright info </div>
</div>
</div>
<div id="DesignedBy">Logo & site design by <a title="Visit Tom Hickey's website." href="http://www.tomhickey.com">Tom Hickey</a>.<br />
Clojure auto-documentation system by Tom Faulhaber.</div>
</div>
<!-- /AllContentContainer -->
</body>
</html>