Sha256: 1a8e37dd4a75f90ec85fe507d617cd0e7019ba31d32d7ab6f18abc1e4b4fc5f8

Contents?: true

Size: 635 Bytes

Versions: 3

Compression:

Stored size: 635 Bytes

Contents

aggregate_hour:
    "function(doc) { 
        d = new Date(doc.date* 1000); 
        return {date:  (Date.parse((d.getMonth() + 1) + '/' + d.getDate() + '/' + d.getFullYear() + ' ' + d.getHours() + ':00:00') / 1000).toFixed(0)}; 
     }"
     
aggregate_day:
    "function(doc) { 
        d = new Date(doc.date* 1000); 
        return {date:   (Date.parse((d.getMonth() + 1) + '/' + d.getDate() + '/' + d.getFullYear()) / 1000).toFixed(0)}; 
     }"
    
aggregate_month:
    "function(doc) { 
    d = new Date(doc.date* 1000); 
    return {date:   (Date.parse((d.getMonth() + 1) + '/1/' + d.getFullYear()) / 1000).toFixed(0)}; 
    }"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gatoroid-0.2.2 lib/gator/javascript/functions.yml
gatoroid-0.2.1 lib/gator/javascript/functions.yml
gatoroid-0.2.0 lib/gator/javascript/functions.yml