前もって定義されたフォーマットの一覧は次にあります。
表にまとめておくと:([追記]抜け落ちていたフォーマットを追加[/追記])
名前 | 説明 |
---|---|
date-time | This should be a date in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time. This is the recommended form of date/timestamp. |
date | This should be a date in the format of YYYY-MM-DD. It is recommended that you use the "date-time" format instead of "date" unless you need to transfer only the date part. |
time | This should be a time in the format of hh:mm:ss. It is recommended that you use the "date-time" format instead of "time" unless you need to transfer only the time part. |
utc-millisec | This should be the difference, measured in milliseconds, between the specified time and midnight, January 1, 1970 UTC. The value should be a number (integer or float). |
regex | A regular expression. |
color | This is a CSS color (like "#FF0000" or "red"). |
style | This is a CSS style definition (like "color: red; background-color:#FFF"). |
phone | This should be a phone number (format may follow E.123). |
uri | This value should be a URI.. |
This should be an email address. | |
ip-address | This should be an ip version 4 address. |
ipv6 | This should be an ip version 6 address. |
street-address | This should be a street address. |
locality | This should be a city or town. |
region | This should be a region (a state in the US, province in Canada, etc.) |
postal-code | This should be a postal code (AKA zip code). |
country | This should be the name of a country. |
このなかで、必要性が高くてプログラムによるチェックが可能なものは次の4つくらいでしょう。
- date-time
- uri
- ip-address
金額関係(通貨単位)がないので、追加する必要がありそうです。