We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98994a commit 01e0fb1Copy full SHA for 01e0fb1
lib/query.js
@@ -321,7 +321,21 @@ var parseDate = function(value) {
321
var rawValue = parseBits(value, 63, 1);
322
323
// discard usecs and shift from 2000 to 1970
324
- return new Date((((sign == 0) ? 1 : -1) * rawValue / 1000) + 946684800000);
+ var result = new Date((((sign == 0) ? 1 : -1) * rawValue / 1000) + 946684800000);
325
+
326
+ // add microseconds to the date
327
+ result.usec = rawValue % 1000;
328
+ result.getMicroSeconds = function() {
329
+ return this.usec;
330
+ };
331
+ result.setMicroSeconds = function(value) {
332
+ this.usec = value;
333
334
+ result.getUTCMicroSeconds = function() {
335
336
337
338
+ return result;
339
}
340
341
var arrayParser = function(value) {
0 commit comments