README
Valueflow Timerange
Description
This is a time range selector module for Valueflow.
You can select start and end date which then can be consumed by other modules. It also provides quick jump functionality which defines a list of relative time ranges (e.g. last year or this quarter).
Dev guide
You can use the getTimerange
selector within your mapStateToProps(state)
function in your redux connected react component.
function mapStateToProps(state) {
const { start, end } = getTimerange(state.valueflow);
...
Start and end date are stored as UNIX timestamps. moment
and valueflow-core/utils/time
might come handy working with this module.