-
Notifications
You must be signed in to change notification settings - Fork 3
/
mongodb-seconds-to-minutes.html
280 lines (259 loc) · 25.2 KB
/
mongodb-seconds-to-minutes.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
<!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/Article">
<head>
<title>Convert seconds to minutes in MongoDB</title>
<meta charset="utf-8">
<meta property="og:title" content="Convert seconds to minutes in MongoDB">
<meta property="og:site_name" content="Modesto Mas | Blog">
<meta property="og:image" content="https://mmas.github.io/images/profile.jpg">
<meta property="og:image:width" content="200">
<meta property="og:image:height" content="200">
<meta property="og:url" content="https://mmas.github.io/mongodb-seconds-to-minutes">
<meta property="og:locale" content="en_GB">
<meta name="twitter:image" content="https://mmas.github.io/images/profile.jpg">
<meta name="twitter:url" content="https://mmas.github.io/mongodb-seconds-to-minutes">
<meta name="twitter:card" content="summary">
<meta name="twitter:domain" content="mmas.github.io">
<meta name="twitter:title" content="Convert seconds to minutes in MongoDB">
<meta name="description" content="Here are some examples of conversions from seconds to minutes using MongoDB's aggregation pipeline framework. Some arithmetic operators used in the fo...">
<meta name="twitter:description" content="Here are some examples of conversions from seconds to minutes using MongoDB's aggregation pipeline framework. Some arithmetic operators used in the fo...">
<meta property="og:description" content="Here are some examples of conversions from seconds to minutes using MongoDB's aggregation pipeline framework. Some arithmetic operators used in the fo...">
<meta name="keywords" content="data-analysis,data-warehousing,mongodb">
<meta property="og:type" content="blog">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:type" content="article">
<meta property="article:author" content="https://github.com/mmas">
<meta property="article:section" content="data-analysis">
<meta property="article:tag" content="data-analysis,data-warehousing,mongodb">
<meta property="article:published_time" content="2016-06-14">
<meta property="article:modified_time" content="2016-06-14">
<link rel="stylesheet" type="text/css" href="/css/main.css">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
CommonHTML: {
scale: 93,
showMathMenu: false
},
tex2jax: {
"inlineMath": [["$","$"], ["\\(","\\)"]]
}
});
</script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"></script>
</head>
<body class="entry-detail">
<header>
<div>
<img src="https://mmas.github.io/images/profile.jpg">
<a class="brand" href="/">Modesto Mas</a>
<span>Data/Python/DevOps Engineer</span>
<nav>
<ul>
<li><a href="/tags">Tags</a></li>
<li><a href="https://github.com/mmas/mmas.github.io/issues" target="_blank">Issues</a></li>
</ul>
</nav>
</div>
</header>
<section id="content" role="main">
<article>
<header>
<h1><a href="/mongodb-seconds-to-minutes">Convert seconds to minutes in MongoDB</a></h1>
<time datetime="2016-06-14">Jun 14, 2016</time>
<a class="tag" href="/tags?tag=data-analysis">data-analysis</a>
<a class="tag" href="/tags?tag=data-warehousing">data-warehousing</a>
<a class="tag" href="/tags?tag=mongodb">mongodb</a>
</header>
<aside id="article-nav"></aside>
<section class="body">
<p>Here are some examples of conversions from seconds to minutes using <a target="_blank" href="https://docs.mongodb.com/manual/aggregation/">MongoDB's aggregation pipeline framework</a>.</p>
<p>Some arithmetic operators used in the following examples require MongoDB version 3.2 or higher.</p>
<p>Version used:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript">> <span class="ot">db</span>.<span class="fu">version</span>()
<span class="fl">3.2.1</span></code></pre>
<p>First, insert some random data:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript">> docs = [];
[ ]
> <span class="kw">for</span> (i=<span class="dv">0</span>; i<<span class="dv">10</span>; i++) <span class="ot">docs</span>.<span class="fu">push</span>({<span class="dt">seconds</span>: (<span class="ot">Math</span>.<span class="fu">random</span>()*<span class="dv">1000</span>)|<span class="dv">0</span>});
<span class="dv">10</span>
> docs
[
{
<span class="st">"seconds"</span> : <span class="dv">425</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">12</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">213</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">474</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">143</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">254</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">299</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">768</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">102</span>
},
{
<span class="st">"seconds"</span> : <span class="dv">558</span>
}
]
> <span class="ot">db</span>.<span class="ot">times</span>.<span class="fu">insertMany</span>(docs);
{
<span class="st">"acknowledged"</span> : <span class="kw">true</span>,
<span class="st">"insertedIds"</span> : [
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb6"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb7"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb8"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb9"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bba"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbb"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbc"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbd"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbe"</span>),
<span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbf"</span>)
]
}</code></pre>
<p>Just seconds to minutes:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript">> <span class="ot">db</span>.<span class="ot">times</span>.<span class="fu">aggregate</span>([
{
<span class="dt">$project</span>: {
<span class="dt">seconds</span>: <span class="dv">1</span>,
<span class="dt">minutes</span>: { <span class="dt">$divide</span>: [ <span class="st">"$seconds"</span>, <span class="dv">60</span> ] }
}
}
]);
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb6"</span>), <span class="st">"seconds"</span> : <span class="dv">425</span>, <span class="st">"minutes"</span> : <span class="fl">7.083333333333333</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb7"</span>), <span class="st">"seconds"</span> : <span class="dv">12</span>, <span class="st">"minutes"</span> : <span class="fl">0.2</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb8"</span>), <span class="st">"seconds"</span> : <span class="dv">213</span>, <span class="st">"minutes"</span> : <span class="fl">3.55</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb9"</span>), <span class="st">"seconds"</span> : <span class="dv">474</span>, <span class="st">"minutes"</span> : <span class="fl">7.9</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bba"</span>), <span class="st">"seconds"</span> : <span class="dv">143</span>, <span class="st">"minutes"</span> : <span class="fl">2.3833333333333333</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbb"</span>), <span class="st">"seconds"</span> : <span class="dv">254</span>, <span class="st">"minutes"</span> : <span class="fl">4.233333333333333</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbc"</span>), <span class="st">"seconds"</span> : <span class="dv">299</span>, <span class="st">"minutes"</span> : <span class="fl">4.983333333333333</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbd"</span>), <span class="st">"seconds"</span> : <span class="dv">768</span>, <span class="st">"minutes"</span> : <span class="fl">12.8</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbe"</span>), <span class="st">"seconds"</span> : <span class="dv">102</span>, <span class="st">"minutes"</span> : <span class="fl">1.7</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbf"</span>), <span class="st">"seconds"</span> : <span class="dv">558</span>, <span class="st">"minutes"</span> : <span class="fl">9.3</span> }</code></pre>
<p>Completed minutes:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript">> <span class="ot">db</span>.<span class="ot">times</span>.<span class="fu">aggregate</span>([
{
<span class="dt">$project</span>: {
<span class="dt">seconds</span>: <span class="dv">1</span>,
<span class="dt">minutes</span>: { <span class="dt">$floor</span>: { <span class="dt">$divide</span>: [ <span class="st">"$seconds"</span>, <span class="dv">60</span> ] } }
}
}
]);
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb6"</span>), <span class="st">"seconds"</span> : <span class="dv">425</span>, <span class="st">"minutes"</span> : <span class="dv">7</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb7"</span>), <span class="st">"seconds"</span> : <span class="dv">12</span>, <span class="st">"minutes"</span> : <span class="dv">0</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb8"</span>), <span class="st">"seconds"</span> : <span class="dv">213</span>, <span class="st">"minutes"</span> : <span class="dv">3</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb9"</span>), <span class="st">"seconds"</span> : <span class="dv">474</span>, <span class="st">"minutes"</span> : <span class="dv">7</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bba"</span>), <span class="st">"seconds"</span> : <span class="dv">143</span>, <span class="st">"minutes"</span> : <span class="dv">2</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbb"</span>), <span class="st">"seconds"</span> : <span class="dv">254</span>, <span class="st">"minutes"</span> : <span class="dv">4</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbc"</span>), <span class="st">"seconds"</span> : <span class="dv">299</span>, <span class="st">"minutes"</span> : <span class="dv">4</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbd"</span>), <span class="st">"seconds"</span> : <span class="dv">768</span>, <span class="st">"minutes"</span> : <span class="dv">12</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbe"</span>), <span class="st">"seconds"</span> : <span class="dv">102</span>, <span class="st">"minutes"</span> : <span class="dv">1</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbf"</span>), <span class="st">"seconds"</span> : <span class="dv">558</span>, <span class="st">"minutes"</span> : <span class="dv">9</span> }</code></pre>
<p>Rounded minutes (<a target="_blank" href="https://twitter.com/mongodb/status/447930515908464640">no <code>$round</code> operator in MongoDB</a>):</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript">> <span class="ot">db</span>.<span class="ot">times</span>.<span class="fu">aggregate</span>([
{
<span class="dt">$project</span>: {
<span class="dt">seconds</span>: <span class="dv">1</span>,
<span class="dt">minutes</span>: {
<span class="dt">$divide</span>: [
{
<span class="dt">$subtract</span>: [
{ <span class="dt">$add</span>: [ <span class="dv">30</span>, <span class="st">"$seconds"</span> ] },
{ <span class="dt">$mod</span>: [ { <span class="dt">$add</span>: [ <span class="dv">30</span>, <span class="st">"$seconds"</span> ] }, <span class="dv">60</span> ] }
]
},
<span class="dv">60</span>
]
}
}
}
]);
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb6"</span>), <span class="st">"seconds"</span> : <span class="dv">425</span>, <span class="st">"minutes"</span> : <span class="dv">7</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb7"</span>), <span class="st">"seconds"</span> : <span class="dv">12</span>, <span class="st">"minutes"</span> : <span class="dv">0</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb8"</span>), <span class="st">"seconds"</span> : <span class="dv">213</span>, <span class="st">"minutes"</span> : <span class="dv">4</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb9"</span>), <span class="st">"seconds"</span> : <span class="dv">474</span>, <span class="st">"minutes"</span> : <span class="dv">8</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bba"</span>), <span class="st">"seconds"</span> : <span class="dv">143</span>, <span class="st">"minutes"</span> : <span class="dv">2</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbb"</span>), <span class="st">"seconds"</span> : <span class="dv">254</span>, <span class="st">"minutes"</span> : <span class="dv">4</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbc"</span>), <span class="st">"seconds"</span> : <span class="dv">299</span>, <span class="st">"minutes"</span> : <span class="dv">5</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbd"</span>), <span class="st">"seconds"</span> : <span class="dv">768</span>, <span class="st">"minutes"</span> : <span class="dv">13</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbe"</span>), <span class="st">"seconds"</span> : <span class="dv">102</span>, <span class="st">"minutes"</span> : <span class="dv">2</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbf"</span>), <span class="st">"seconds"</span> : <span class="dv">558</span>, <span class="st">"minutes"</span> : <span class="dv">9</span> }</code></pre>
<p>Minutes and remaining seconds:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript">> <span class="ot">db</span>.<span class="ot">times</span>.<span class="fu">aggregate</span>([
{
<span class="dt">$project</span>: {
<span class="dt">minutes</span>: { <span class="dt">$floor</span>: { <span class="dt">$divide</span>: [ <span class="st">"$seconds"</span>, <span class="dv">60</span> ] } },
<span class="dt">seconds</span>: { <span class="dt">$mod</span>: [<span class="st">"$seconds"</span>, <span class="dv">60</span>] }
}
}
]);
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb6"</span>), <span class="st">"seconds"</span> : <span class="dv">5</span>, <span class="st">"minutes"</span> : <span class="dv">7</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb7"</span>), <span class="st">"seconds"</span> : <span class="dv">12</span>, <span class="st">"minutes"</span> : <span class="dv">0</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb8"</span>), <span class="st">"seconds"</span> : <span class="dv">33</span>, <span class="st">"minutes"</span> : <span class="dv">3</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb9"</span>), <span class="st">"seconds"</span> : <span class="dv">54</span>, <span class="st">"minutes"</span> : <span class="dv">7</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bba"</span>), <span class="st">"seconds"</span> : <span class="dv">23</span>, <span class="st">"minutes"</span> : <span class="dv">2</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbb"</span>), <span class="st">"seconds"</span> : <span class="dv">14</span>, <span class="st">"minutes"</span> : <span class="dv">4</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbc"</span>), <span class="st">"seconds"</span> : <span class="dv">59</span>, <span class="st">"minutes"</span> : <span class="dv">4</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbd"</span>), <span class="st">"seconds"</span> : <span class="dv">48</span>, <span class="st">"minutes"</span> : <span class="dv">12</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbe"</span>), <span class="st">"seconds"</span> : <span class="dv">42</span>, <span class="st">"minutes"</span> : <span class="dv">1</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbf"</span>), <span class="st">"seconds"</span> : <span class="dv">18</span>, <span class="st">"minutes"</span> : <span class="dv">9</span> }</code></pre>
<p>Formatted time:</p>
<pre class="sourceCode javascript"><code class="sourceCode javascript">> <span class="ot">db</span>.<span class="ot">times</span>.<span class="fu">aggregate</span>([
{
<span class="dt">$project</span>: {
<span class="dt">time</span>: {
<span class="dt">$let</span>: {
<span class="dt">vars</span>: {
<span class="dt">minutes</span>: { <span class="dt">$floor</span>: { <span class="dt">$divide</span>: [ <span class="st">"$seconds"</span>, <span class="dv">60</span> ] } },
<span class="dt">seconds</span>: { <span class="dt">$mod</span>: [ <span class="st">"$seconds"</span>, <span class="dv">60</span> ] }
},
<span class="kw">in</span>: {
<span class="dt">$concat</span>: [
<span class="co">// integer to string</span>
{ <span class="dt">$substr</span>: [ <span class="st">"$$minutes"</span>, <span class="dv">0</span>, -<span class="dv">1</span> ] },
<span class="st">':'</span>,
{ <span class="dt">$cond</span>: [
{ <span class="dt">$lt</span>: [ <span class="st">"$$seconds"</span>, <span class="dv">10</span> ] },
<span class="co">// integer to string and zero padding</span>
{ <span class="dt">$concat</span>: [ <span class="st">"0"</span>, { <span class="dt">$substr</span>: [ <span class="st">"$$seconds"</span>, <span class="dv">0</span>, -<span class="dv">1</span> ] } ] },
<span class="co">// integer to string</span>
{ <span class="dt">$substr</span>: [ <span class="st">"$$seconds"</span>, <span class="dv">0</span>, -<span class="dv">1</span> ] }
] }
]
}
}
}
}
}
]);
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb6"</span>), <span class="st">"time"</span> : <span class="st">"7:05"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb7"</span>), <span class="st">"time"</span> : <span class="st">"0:12"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb8"</span>), <span class="st">"time"</span> : <span class="st">"3:33"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bb9"</span>), <span class="st">"time"</span> : <span class="st">"7:54"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bba"</span>), <span class="st">"time"</span> : <span class="st">"2:23"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbb"</span>), <span class="st">"time"</span> : <span class="st">"4:14"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbc"</span>), <span class="st">"time"</span> : <span class="st">"4:59"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbd"</span>), <span class="st">"time"</span> : <span class="st">"12:48"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbe"</span>), <span class="st">"time"</span> : <span class="st">"1:42"</span> }
{ <span class="st">"_id"</span> : <span class="fu">ObjectId</span>(<span class="st">"575f51593e04b847286b2bbf"</span>), <span class="st">"time"</span> : <span class="st">"9:18"</span> }</code></pre>
</section>
</article>
</section>
<footer></footer>
<script type="text/javascript" src="/js/article.js"></script>
</body>
</html>