Clean datetime value to conform to RDF/XML standards This class supports Julian->Gregorian conversion.
More...
|
| getStandardValue (TimeValue $value) |
| Get standardized dateTime value, compatible with xsd:dateTime If the value cannot be converted to it, returns null.
|
|
| __construct ( $xsd11=true) |
|
|
| julianDateValue ( $dateValue) |
| Get Julian date value and return it as Gregorian date.
|
|
Clean datetime value to conform to RDF/XML standards This class supports Julian->Gregorian conversion.
- Copyright
- GPL-2.0-or-later
- Author
- Stas Malyshev
-
Thiemo Kreuz
◆ getStandardValue()
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.
- Parameters
-
- Returns
- string|null Value compatible with xsd:dateTime type, null if the input is an illegal XSD 1.0 timestamp
Reimplemented from Wikibase\Repo\Rdf\DateTimeValueCleaner.
◆ julianDateValue()
Wikibase\Repo\Rdf\JulianDateTimeValueCleaner::julianDateValue |
( |
| $dateValue | ) |
|
|
private |
Get Julian date value and return it as Gregorian date.
- Parameters
-
- Exceptions
-
IllegalValueException | if the input is an illegal XSD 1.0 timestamp |
- Returns
- string|null Value compatible with xsd:dateTime type, null if conversion is not possible
The documentation for this class was generated from the following file: