Wikibase
MediaWiki Wikibase extension
|
Clean datetime value to conform to RDF/XML standards This class supports Julian->Gregorian conversion. More...
Public Member Functions | |
getStandardValue (TimeValue $value) | |
Get standardized dateTime value, compatible with xsd:dateTime If the value cannot be converted to it, returns null. More... | |
Public Member Functions inherited from Wikibase\Repo\Rdf\DateTimeValueCleaner | |
__construct ( $xsd11=true) | |
Private Member Functions | |
julianDateValue ( $dateValue) | |
Get Julian date value and return it as Gregorian date. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Wikibase\Repo\Rdf\DateTimeValueCleaner | |
cleanupGregorianValue ( $dateValue, $precision) | |
Clean up Wikidata date value in Gregorian calendar. More... | |
parseDateValue ( $dateValue) | |
Parse date value and fix weird numbers there. More... | |
Protected Attributes inherited from Wikibase\Repo\Rdf\DateTimeValueCleaner | |
$xsd11 = true | |
Clean datetime value to conform to RDF/XML standards This class supports Julian->Gregorian conversion.
Wikibase\Repo\Rdf\JulianDateTimeValueCleaner::getStandardValue | ( | TimeValue | $value | ) |
Get standardized dateTime value, compatible with xsd:dateTime If the value cannot be converted to it, returns null.
TimeValue | $value |
Reimplemented from Wikibase\Repo\Rdf\DateTimeValueCleaner.
|
private |
Get Julian date value and return it as Gregorian date.
string | $dateValue |
IllegalValueException | if the input is an illegal XSD 1.0 timestamp |