{"action":"created","issue":{"url":"https://api.github.com/repos/anthonywhitford/bic-lcf/issues/7","labels_url":"https://api.github.com/repos/anthonywhitford/bic-lcf/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/anthonywhitford/bic-lcf/issues/7/comments","events_url":"https://api.github.com/repos/anthonywhitford/bic-lcf/issues/7/events","html_url":"https://github.com/anthonywhitford/bic-lcf/issues/7","id":111581804,"number":7,"title":"Why do we define our own Date and DateTime types and not use the standard ones?","user":{"login":"neilstevens2005","id":12140450,"avatar_url":"https://avatars.githubusercontent.com/u/12140450?v=3","gravatar_id":"","url":"https://api.github.com/users/neilstevens2005","html_url":"https://github.com/neilstevens2005","followers_url":"https://api.github.com/users/neilstevens2005/followers","following_url":"https://api.github.com/users/neilstevens2005/following{/other_user}","gists_url":"https://api.github.com/users/neilstevens2005/gists{/gist_id}","starred_url":"https://api.github.com/users/neilstevens2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilstevens2005/subscriptions","organizations_url":"https://api.github.com/users/neilstevens2005/orgs","repos_url":"https://api.github.com/users/neilstevens2005/repos","events_url":"https://api.github.com/users/neilstevens2005/events{/privacy}","received_events_url":"https://api.github.com/users/neilstevens2005/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"franciscave","id":9418480,"avatar_url":"https://avatars.githubusercontent.com/u/9418480?v=3","gravatar_id":"","url":"https://api.github.com/users/franciscave","html_url":"https://github.com/franciscave","followers_url":"https://api.github.com/users/franciscave/followers","following_url":"https://api.github.com/users/franciscave/following{/other_user}","gists_url":"https://api.github.com/users/franciscave/gists{/gist_id}","starred_url":"https://api.github.com/users/franciscave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franciscave/subscriptions","organizations_url":"https://api.github.com/users/franciscave/orgs","repos_url":"https://api.github.com/users/franciscave/repos","events_url":"https://api.github.com/users/franciscave/events{/privacy}","received_events_url":"https://api.github.com/users/franciscave/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-10-15T09:48:14Z","updated_at":"2015-10-22T14:27:49Z","closed_at":null,"body":"Date and DateTimes.\r\n\r\nIn the XSD schema we define our own date and datetime formats as:\r\n\r\n\t<xs:simpleType name=\"dateFixedFormat\">\r\n        <xs:restriction base=\"xs:string\">\r\n            <xs:pattern value=\"2\\d\\d\\d(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-8])\"/>\r\n            <xs:pattern value=\"200[048]0229\"/>\r\n            <xs:pattern value=\"2[1-9]0[48]0229\"/>\r\n            <xs:pattern value=\"2\\d([2468][048]|[13579][26])0229\"/>\r\n            <xs:pattern value=\"2\\d\\d\\d(0[13-9]|1[0-2])(29|30)\"/>\r\n            <xs:pattern value=\"2\\d\\d\\d(0[13578]|1[02])31\"/>\r\n        </xs:restriction>\r\n    </xs:simpleType>\r\n\r\n    <xs:simpleType name=\"dateTimeFixedFormat\">\r\n        <xs:restriction base=\"xs:string\">\r\n            <xs:pattern\r\n                value=\"2\\d\\d\\d(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-8])T([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9](Z|[+\\-](0[0-9]|1[0-2])(00|15|30|45))?\"/>\r\n            <xs:pattern\r\n                value=\"200[048]0229T([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9](Z|[+\\-](0[0-9]|1[0-2])(00|15|30|45))?\"/>\r\n            <xs:pattern\r\n                value=\"2[1-9]0[48]0229T([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9](Z|[+\\-](0[0-9]|1[0-2])(00|15|30|45))?\"/>\r\n            <xs:pattern\r\n                value=\"2\\d([2468][048]|[13579][26])0229T([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9](Z|[+\\-](0[0-9]|1[0-2])(00|15|30|45))?\"/>\r\n            <xs:pattern\r\n                value=\"2\\d\\d\\d(0[13-9]|1[0-2])(29|30)T([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9](Z|[+\\-](0[0-9]|1[0-2])(00|15|30|45))?\"/>\r\n            <xs:pattern\r\n                value=\"2\\d\\d\\d(0[13578]|1[02])31T([01][0-9]|2[0-3])[0-5][0-9][0-5][0-9](Z|[+\\-](0[0-9]|1[0-2])(00|15|30|45))?\"\r\n            />\r\n        </xs:restriction>\r\n    </xs:simpleType>\r\n\t\r\nI think it would make far more sense to use the standard XSD Date and DateTime types (defined here http://www.w3schools.com/schema/schema_dtypes_date.asp).  The advantage of this is many software libraries written in different programming languages will parse and build standard XSD date and datetime values.  This would mean implementors would not need write custom parsing and building code for these fields.  Defining our own DateTime type also makes the interface confusing (since when implementors see \"DateTime\" type in the entity document they will assume this means the standard XSD DateTime type)."},"comment":{"url":"https://api.github.com/repos/anthonywhitford/bic-lcf/issues/comments/150241187","html_url":"https://github.com/anthonywhitford/bic-lcf/issues/7#issuecomment-150241187","issue_url":"https://api.github.com/repos/anthonywhitford/bic-lcf/issues/7","id":150241187,"user":{"login":"anthonywhitford","id":6545701,"avatar_url":"https://avatars.githubusercontent.com/u/6545701?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonywhitford","html_url":"https://github.com/anthonywhitford","followers_url":"https://api.github.com/users/anthonywhitford/followers","following_url":"https://api.github.com/users/anthonywhitford/following{/other_user}","gists_url":"https://api.github.com/users/anthonywhitford/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonywhitford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonywhitford/subscriptions","organizations_url":"https://api.github.com/users/anthonywhitford/orgs","repos_url":"https://api.github.com/users/anthonywhitford/repos","events_url":"https://api.github.com/users/anthonywhitford/events{/privacy}","received_events_url":"https://api.github.com/users/anthonywhitford/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T14:27:49Z","updated_at":"2015-10-22T14:27:49Z","body":"@franciscave - Can you review the committed amendment please?"}}