From 388a27ab7108949e7168a7c1d6fe45d293772cd1 Mon Sep 17 00:00:00 2001 From: root <root@server-studidev.gnm.de> Date: Tue, 4 Sep 2018 16:12:52 +0200 Subject: [PATCH] first changes for implementing greater timespans --- src/timeline.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/timeline.js b/src/timeline.js index f738ff6..20a8396 100644 --- a/src/timeline.js +++ b/src/timeline.js @@ -33,7 +33,10 @@ months : "F", days : "j", meta : "Y/m/d H:i", // start datetime in meta of Event Detail; or "g:i A, D F j, Y" - metato : "" // end datetime in meta of Event Detail; default is same to meta + metato : "", // end datetime in meta of Event Detail; default is same to metai + century : "C", + millennium : "mil", + million : "mio" //one million of years }, minuteInterval : 30, // Recommend more than 5 minutes; only if top scale is "days" ; Deprecated zerofillYear : false, // It's outputted at the "0099" if true, the "99" if false @@ -75,6 +78,9 @@ "datetime-format-days" : settings.datetimeFormat.days || 'j', "datetime-format-meta" : settings.datetimeFormat.meta || 'Y/m/d H:i', "datetime-format-metato": settings.datetimeFormat.metato || '', + "datetime-format-century": settings.datetimeFormat.million || 'C', + "datetime-format-millennium": settings.datetimeFormat.millennium || 'mil', + "datetime-format-million": settings.datetimeFormat.million || 'mio', //one million of years "minute-interval" : settings.minuteInterval, "zerofill-year" : settings.zerofillYear ? 1 : 0, "range" : settings.range, -- GitLab