Skip to content

should parse fail when out of range? #47

Description

@rnons

Is this behavior expected?

var d3TimeFormat = require("d3-time-format")

d3TimeFormat.timeParse('%m/%d/%Y')('26/1/2017') // Fri Feb 01 2019 00:00:00 GMT+0900 (JST)
d3TimeFormat.timeParse('%d/%m/%Y')('26/1/2017') // Thu Jan 26 2017 00:00:00 GMT+0900 (JST)

I read from README %m - month as a decimal number [01,12]., so I would like d3TimeFormat.timeParse('%m/%d/%Y')('26/1/2017') to return null, is that possible?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions