summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/CalendarModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/CalendarModel.php')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/CalendarModel.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/CalendarModel.php b/www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/CalendarModel.php
new file mode 100644
index 00000000..8ac24544
--- /dev/null
+++ b/www/wiki/extensions/SemanticMediaWiki/src/DataValues/Time/CalendarModel.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace SMW\DataValues\Time;
+
+/**
+ * It is assumed that the changeover from the Julian calendar to the Gregorian
+ * calendar occurred in October of 1582.
+ *
+ * For dates on or before 4 October 1582, the Julian calendar is used; for dates
+ * on or after 15 October 1582, the Gregorian calendar is used.
+ *
+ * @license GNU GPL v2+
+ * @since 2.5
+ *
+ * @author mwjames
+ */
+interface CalendarModel {
+
+ /**
+ * Gregorian calendar
+ */
+ const CM_GREGORIAN = 1;
+
+ /**
+ * Julian calendar
+ */
+ const CM_JULIAN = 2;
+
+}