hunk.code_window: |                                 | pppp         | 1987-02-11T12:13:14.015Z | 12:13:14 GMT+00:00                               | Errored                  |
   |                                 |              | 1453-05-29T23:59:59.999Z | 23:59:59 GMT+00:00                               | Errored                  |
   | Combination of date and time    | Pp           | 1987-02-11T12:13:14.015Z | 11.02.1987 12:13                                 | 1987-02-11T12:13:00.000Z |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29.05.1453 23:59                                 | 1453-05-29T23:59:00.000Z |
   |                                 | PPpp         | 1987-02-11T12:13:14.015Z | 11. Feb.. 1987 12:13:14                          | Invalid Date             |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29. Mai. 1453 23:59:59                           | 1453-05-29T23:59:59.000Z |
   |                                 | PPPppp       | 1987-02-11T12:13:14.015Z | 11. Februar 1987 um 12:13:14 GMT+0               | Errored                  |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29. Mai 1453 um 23:59:59 GMT+0                   | Errored                  |
   |                                 | PPPPpppp     | 1987-02-11T12:13:14.015Z | Mittwoch, 11. Februar 1987 um 12:13:14 GMT+00:00 | Errored                  |
  
hunk.labels: keep keep keep keep replace replace keep keep keep
hunk.after_edit: |                                 | PPpp         | 1987-02-11T12:13:14.015Z | 11. Feb. 1987 12:13:14                           | Invalid Date             |
   |                                 |              | 1453-05-29T23:59:59.999Z | 29. Mai 1453 23:59:59                            | 1453-05-29T23:59:59.000Z |
  
hunk.file_path: src/locale/de/snapshot.md
hunk.type: replace
file: // @flow
  /* eslint-env mocha */
  /* global suite, benchmark */
  
  import sub from '.'
  import moment from 'moment'
  
  suite(
    'add',
    function() {
      benchmark('date-fns', function() {
        return sub(this.date, { hours: 5, minutes: 10 })
      })
  
      benchmark('Moment.js', function() {
        return this.moment.subtract({ hours: 5, minutes: 10 })
      })
    },
    {
      setup: function() {
        this.date = new Date()
        this.moment = moment()
      }
    }
  )
  