Skip to content

Instantly share code, notes, and snippets.

@mrgenixus
Created August 22, 2016 21:51
Show Gist options
  • Select an option

  • Save mrgenixus/ef83131c83d6ac64b95edd05e3143b70 to your computer and use it in GitHub Desktop.

Select an option

Save mrgenixus/ef83131c83d6ac64b95edd05e3143b70 to your computer and use it in GitHub Desktop.
TimeStampReducer
export default function recordTime(target, state, action) {
if (action.type === target) return new Date().toDateTimeString();
if (action.type === target) return moment().format('iso9660'); // is this a thing?
return state;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment