diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-21 14:33:31 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-21 14:33:31 +0300 |
commit | 88f69cbd8cd89ffbdc1f0200d5c298f7c7c0acd7 (patch) | |
tree | 44ffbb4de075a5399f575f827f4e617d78efe245 /app/assets/javascripts/monitoring/constants.js | |
parent | d7154552b65c767265a8182fee463fbb5252f93b (diff) |
Used reduce over forEach
Moved shared date & time formats into constants
Diffstat (limited to 'app/assets/javascripts/monitoring/constants.js')
-rw-r--r-- | app/assets/javascripts/monitoring/constants.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/monitoring/constants.js b/app/assets/javascripts/monitoring/constants.js new file mode 100644 index 00000000000..c3a8da52404 --- /dev/null +++ b/app/assets/javascripts/monitoring/constants.js @@ -0,0 +1,4 @@ +import d3 from 'd3'; + +export const dateFormat = d3.time.format('%b %d, %Y'); +export const timeFormat = d3.time.format('%H:%M%p'); |