Checks if the snak has a value.
True if the snak has a value.
Creates a unique ID for the Snak.
The ID.
Static
fromDates only, so add all of the date (year, month, day).
The property of the snak in 'P-form'.
The year of the date.
The month of the date (1-12), so just the normal months.
The day of the date (1-31).
The calendar model for the snak.
The TimeSnak.
Static
fromCreate a TimeSnak from a Date object.
WARNING: JS Dates are horrible and you should not use them. Use a library like moment.js instead. When using it normally you should be fine, but anything before 1970 will be wrong. Also, timezones are not supported, so you need to use UTC which conflicts with Wikidata that assumes that all dates are in the local timezone.
The property of the snak in 'P-form'.
The Date object.
The calendar model for the snak.
The TimeSnak.
Class for the TimeSnak.
Most used property of this type is P1619 (date of official opening).