openreferral / specification

The Human Services Data Specification - a data exchange format developed by the Open Referral Initiative
https://openreferral.org
Other
117 stars 49 forks source link

Use current "format" for type "date" fields #103

Closed danfowler closed 7 years ago

danfowler commented 7 years ago

On https://github.com/openreferral/specification/blob/master/datapackage.json#L55

Currently, the date format should be specified like "fmt:%Y":

fmt:PATTERN: date/time values in this field conform to PATTERN where [PATTERN] follows the syntax of [standard Python / C strptime][strptime]. (That is, values in the this field should be parseable by Python / C standard strptime using PATTERN). Example: fmt:%d %b %y would correspond to dates like: 30 Nov 14

http://specs.frictionlessdata.io/json-table-schema/#date

Note: see discussion on removing fmt: prefix: https://github.com/frictionlessdata/specs/issues/260

timgdavies commented 7 years ago

Thanks @danfowler

I've updated the instance of date on the 1.0-beta branch to reflect this, and have also checked for date and datetime fields.

klambacher commented 7 years ago

For clarity, year incorporated is the only case using a pattern, and the rest are using a default of ISO-8601 yes?