« Issue/2218 » : différence entre les versions

De Semantic MediaWiki - Sandbox
(Page créée avec « Testing negative dates Date of birth::-0341-01-01T00:00:00Z »)
 
Aucun résumé des modifications
 
(12 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
Testing negative dates
'''Testing negative dates'''


[[Date of birth::-0341-01-01T00:00:00Z]]
Date source: https://www.wikidata.org/wiki/Special:EntityData/Q43216.json
 
== Input ==
 
This is not accepted:
 
* [[Date of birth::-0341-03-10T00:00:00Z]]
* [[Date of birth::-0342-00-00T00:00:00Z]]
* [[Date of birth::0342-00-00T00:00:00Z BC]]
 
This is accepted:
 
* [[Date of birth::0341-03-10T00:00:00Z BC]]
* [[Date of birth::2000-02-11T22:00:01+02:00]]
 
== Output ==
 
{{#ask:[[{{FULLPAGENAME}}]]|?Date of birth|mainlabel=-|headers=hide|format=ul}}
 
=== ISO ===
 
{{#ask:[[{{FULLPAGENAME}}]]|?Date of birth#ISO|mainlabel=-|headers=hide|format=ul}}

Dernière version du 31 janvier 2017 à 18:23

Testing negative dates

Date source: https://www.wikidata.org/wiki/Special:EntityData/Q43216.json

Input

This is not accepted:

  • -0341-03-10T00:00:00Z"-0341-03-10T00:00:00Z" contains an extrinsic dash or other characters that are invalid for a date interpretation.
  • -0342-00-00T00:00:00Z"-0342-00-00T00:00:00Z" contains an extrinsic dash or other characters that are invalid for a date interpretation.
  • 0342-00-00T00:00:00Z BC"0342-00-00T00:00:00Z BC" contains a sequence that could not be interpreted against an available match matrix for date components.

This is accepted:

  • 0341-03-10T00:00:00Z BC
  • 2000-02-11T22:00:01+02:00

Output

  • 10 mars 341 BC 00:00:00 JL, 11 février 2000 20:00:01

ISO

  • --341-03-05T00:00:00, 2000-02-11T20:00:01
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.