forked from incanter/incanter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
chrono-api.html
528 lines (504 loc) · 24 KB
/
chrono-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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<html>
<head>
<title>chrono API reference (Incanter)</title>
<link href="static/incanter.ico" rel="icon" />
<link href="static/incanter.ico" 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" />
<!-- TODO: are we using these (from clojure.org)? If so, add the files -->
<script src="file/view/code_highlighter.js" type="text/javascript"></script>
<script src="file/view/clojure.js" type="text/javascript"></script>
<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">Incanter</a></h1>
</div>
<div id="leftcolumn"><div style="text-align: center;"></div>
<div class="menu">
<div class="WikiCustomNav WikiElement wiki">
<a class="wiki_link" href="index.html">Overview</a><br />
<a class="wiki_link" href="api-index.html">API Index</a><br />
<a class="wiki_link" href="#">Namespaces:</a>
<ul id="left-sidebar-list">
<li><a href="bayes-api.html" class="wiki_link">bayes</a></li><li><a href="censored-api.html" class="wiki_link">censored</a></li><li><a href="charts-api.html" class="wiki_link">charts</a></li><li><a href="chrono-api.html" class="wiki_link">chrono</a></li><li><a href="classification-api.html" class="wiki_link">classification</a></li><li><a href="core-api.html" class="wiki_link">core</a></li><li><a href="datasets-api.html" class="wiki_link">datasets</a></li><li><a href="incremental-stats-api.html" class="wiki_link">incremental-stats</a></li><li><a href="information-theory-api.html" class="wiki_link">information-theory</a></li><li><a href="internal-api.html" class="wiki_link">internal</a></li><li><a href="io-api.html" class="wiki_link">io</a></li><li><a href="optimize-api.html" class="wiki_link">optimize</a></li><li><a href="probability-api.html" class="wiki_link">probability</a></li><li><a href="processing-api.html" class="wiki_link">processing</a></li><li><a href="som-api.html" class="wiki_link">som</a></li><li><a href="stats-api.html" class="wiki_link">stats</a></li><li><a href="transformations-api.html" class="wiki_link">transformations</a></li>
</ul>
</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="#incanter.chrono/are-overlapping?">are-overlapping?</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/before?">before?</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/beginning-of">beginning-of</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/date">date</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/date-seq">date-seq</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/date-time">date-time</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/date>">date></a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/def-date-format">def-date-format</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/def-date-parser">def-date-parser</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/earlier">earlier</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/earlier?">earlier?</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/end-of">end-of</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/format-date">format-date</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/hours-around">hours-around</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/hours-between">hours-between</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/hours-from">hours-from</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/is-within?">is-within?</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/joda-date">joda-date</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/joda-guard">joda-guard</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/joda-proxy">joda-proxy</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/joda-str">joda-str</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/later">later</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/later?">later?</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/minutes-between">minutes-between</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/minutes-from">minutes-from</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/now">now</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/parse-date">parse-date</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/time-between">time-between</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/time-zone">time-zone</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/today">today</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/units-in-seconds">units-in-seconds</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/units-to-calendar-units">units-to-calendar-units</a>
</div><div style="margin-left: 1em;" class="toc-entry">
<a href="#incanter.chrono/valid-range?">valid-range?</a>
</div>
<br />
</div>
</div>
</div>
<div id="content-tag"><h1 id="overview">API for <span id="namespace-name">chrono</span></h1>
by <span id="author">Matt Moriarity, Phil Hagelberg, and Bradford Cross</span><br />
<br />Usage:
<pre>
(ns your-namespace
(:require <span id="long-name">incanter.chrono</span>))
</pre><pre>
</pre><h2>Overview</h2>
<pre id="namespace-docstr">
chrono.clj --- Because calling it date-utils would be boring.
Use the date function to create dates. You can look up components
much like you would in a map:
(def my-date (date 2009 2 27 12 34 56))
(my-date :year) ;; 2009
(my-date :month) ;; 2
(my-date :day) ;; 27
(my-date :hour) ;; 12
(my-date :minute) ;; 34
(my-date :second) ;; 56
You may omit the time if you like:
(def my-other-date (date 2009 2 27))
(my-other-date :hour) ;; 0
To get a date relative to another date, use earlier and later:
(earlier my-date 100 :minute) ;; 2009 2 27 10:54:56
(later my-other-date 10 :day) ;; 2009 3 9
For comparing dates, use earlier? and later?:
(earlier? my-date my-other-date) ;; false
(later? (later my-date 10 :day) my-date) ;; true
You can see the time between two dates by calling time-between:
(time-between my-other-date (date 2009 2 25) :days) ;; 2
The date-seq function returns a lazy seq of dates incrementing by
the units in its first arg starting from its second arg. The third
arg if given dictates the end of the sequence.
(date-seq :hours my-other-date my-date) ;; (a seq of twelve hours)
(take 4 (date-seq :years my-date))
;; (date 2009 2 27 12 34 56) (date 2010 2 27 12 34 56)
;; (date 2011 2 27 12 34 56) (date 2012 2 27 12 34 56) [...]
For converting between strings and dates, use format-date and
parse-date
(format-date my-date :short-date-time) ;; 2/27/09 12:34 PM
(format-date my-other-date :long-date) ;; February 27, 2009
(parse-date "12/25/09" :short-date) ;; (date 2009 12 25)
(parse-date "January 1, 2008 1:45:23 PM EST" :long-date-time)
;; (date 2008 1 1 13 45 23)
Supported date formats are:
iso8601
short-date
medium-date
long-date
full-date
short-date-time
Both format-date and parse-date also support a string for the
format argument, which will use the string as the format for a
SimpleDateFormat (see the javadocs of that class for how to write
these formats).
See test_contrib/chrono.clj for more details.
TODO:
* Timezones
* More support for weeks
* Various others scattered through code
</pre>
<br />
<h2>Public Variables and Functions</h2>
<div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/are-overlapping?">are-overlapping?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (are-overlapping? [s e] [s1 e1])
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L256" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/before?">before?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (before? start end)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L244" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/beginning-of">beginning-of</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (beginning-of the-date unit)
</pre>
<pre id="var-docstr">Return a date at the beginning of the month, year, day, etc. from the-date.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L345" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/date">date</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (date & args)
</pre>
<pre id="var-docstr">Returns a new date object. Takes year, month, and day as args as
well as optionally hours, minutes, and seconds.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L135" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/date-seq">date-seq</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (date-seq units from to)
(date-seq units from)
</pre>
<pre id="var-docstr">Returns a lazy seq of dates starting with from up until to in
increments of units. If to is omitted, returns an infinite seq.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L359" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/date-time">date-time</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (date-time d t)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L303" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/date>">date></h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (date> d)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L158" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/def-date-format">def-date-format</h2>
<span id="var-type">macro</span><br />
<pre id="var-usage">Usage: (def-date-format fname [arg] & body)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L370" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/def-date-parser">def-date-parser</h2>
<span id="var-type">macro</span><br />
<pre id="var-usage">Usage: (def-date-parser fname [arg] & body)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L376" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/earlier">earlier</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (earlier the-date amount units)
(earlier the-date units)
</pre>
<pre id="var-docstr">Returns a date that is earlier than the-date by amount units.
Amount is one if not specified.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L307" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/earlier?">earlier?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (earlier? date-a date-b)
</pre>
<pre id="var-docstr">Is date-a earlier than date-b?</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L320" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/end-of">end-of</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (end-of the-date unit)
</pre>
<pre id="var-docstr">Return a date at the end of the month, year, day, etc. from the-date.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L353" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/format-date">format-date</h2>
<span id="var-type">multimethod</span><br />
<pre id="var-usage">No usage documentation available</pre>
<pre id="var-docstr">Take in a date and a format (either a keyword or a string) and
return a string with the formatted date.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L125" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/hours-around">hours-around</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (hours-around r d)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L240" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/hours-between">hours-between</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (hours-between start end)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L225" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/hours-from">hours-from</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (hours-from d h)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L232" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/is-within?">is-within?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (is-within? d [s e])
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L252" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/joda-date">joda-date</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (joda-date str-d)
(joda-date y m d h min sec mill zone)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L171" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/joda-guard">joda-guard</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (joda-guard d)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L213" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/joda-proxy">joda-proxy</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (joda-proxy & args)
</pre>
<pre id="var-docstr">joda-date object wraped in a proxy of goodness.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L177" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/joda-str">joda-str</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (joda-str d)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L207" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/later">later</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (later the-date amount units)
(later the-date units)
</pre>
<pre id="var-docstr">Returns a date that is later than the-date by amount units.
Amount is one if not specified.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L291" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/later?">later?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (later? date-a date-b)
</pre>
<pre id="var-docstr">Is date-a later than date-b?</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L315" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/minutes-between">minutes-between</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (minutes-between start end)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L218" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/minutes-from">minutes-from</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (minutes-from d m)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L236" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/now">now</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (now)
</pre>
<pre id="var-docstr">Returns a new date object with the current date and time.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L277" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/parse-date">parse-date</h2>
<span id="var-type">multimethod</span><br />
<pre id="var-usage">No usage documentation available</pre>
<pre id="var-docstr">Take in a string with a formatted date and a format (either a
keyword or a string) and return a parsed date.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L130" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/time-between">time-between</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (time-between date-a date-b)
(time-between date-a date-b units)
</pre>
<pre id="var-docstr">How many units between date-a and date-b? Units defaults to seconds.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L324" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/time-zone">time-zone</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (time-zone offset)
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L167" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/today">today</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (today)
</pre>
<pre id="var-docstr">Returns a new date object with only the current date. The time
fields will be set to 0.</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L282" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/units-in-seconds">units-in-seconds</h2>
<span id="var-type">var</span><br />
<pre id="var-usage"></pre>
<pre id="var-docstr">Number of seconds in each unit</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L94" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/units-to-calendar-units">units-to-calendar-units</h2>
<span id="var-type">var</span><br />
<pre id="var-usage"></pre>
<pre id="var-docstr">Conversion of unit keywords to Calendar units</pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L84" id="var-source">Source</a>
</div><div id="var-entry">
<br />
<hr />
<h2 id="incanter.chrono/valid-range?">valid-range?</h2>
<span id="var-type">function</span><br />
<pre id="var-usage">Usage: (valid-range? [start end])
</pre>
<pre id="var-docstr"></pre>
<a href="http://github.com/liebke/incanter/blob/62edc172a0d6713ab4e190d98b2f950888c90114/src/main/clojure/incanter/chrono.clj#L248" id="var-source">Source</a>
</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>