Auke Kok 4e59fcf5c1 Add consistent monotonic day counter - get_day_count()
I've written several experimental bits of code that revolve around the
need for a consistent calendar, but implementing one is extremely hard
in mods due to time changes and mods overriding core.get_timeofday(),
which will conflict.

The second part of the problem is that doing this from a mod requires
constant maintenance of a settings file.

An implementation in core is trivial, however, and solves all of
these problems at virtually no cost: No extra branches in server
steps, and a single branch when minetest.set_time_of_day(), which is
entirely reasonable.

We store the day_count value in env_meta.txt.

The use case is obvious: This change allows mods to create an actual
virtual calendar, or properly account for seasonal changes, etc..

We add a "/days" chatcommand that displays the current day count. No
permissions are needed. It can only retrieve the day count, not
modify it.
2016-03-09 01:45:23 +01:00
..
2016-02-11 16:55:15 +01:00
2015-05-12 21:07:46 +02:00
2015-05-12 21:07:46 +02:00
2015-03-27 15:00:48 -04:00
2016-01-23 05:45:29 +01:00
2016-03-07 16:33:20 -05:00
2015-02-17 15:07:05 +01:00
2015-08-23 22:04:06 -04:00
2016-02-21 17:46:50 +01:00
2016-02-18 16:43:29 +01:00
2015-12-07 13:51:41 -05:00
2016-02-11 16:55:15 +01:00
2016-02-11 16:55:15 +01:00
2016-03-07 16:33:20 -05:00
2015-08-02 14:27:04 +02:00
2016-02-18 16:43:29 +01:00
2016-02-18 16:43:29 +01:00
2016-02-26 00:50:46 +00:00
2016-01-08 15:37:11 +01:00
2015-11-06 08:51:14 +01:00
2016-02-18 16:43:29 +01:00
2015-08-25 18:33:52 -04:00
2015-10-31 13:28:58 -04:00
2015-12-07 13:51:41 -05:00
2015-08-25 18:33:52 -04:00
2015-07-08 10:12:44 +02:00
2016-03-02 23:23:31 -05:00
2015-07-23 07:38:13 +02:00
2016-02-18 16:43:29 +01:00
2015-10-14 01:03:54 -04:00
2015-08-25 18:33:52 -04:00
2015-10-26 15:14:22 +01:00
2015-03-25 02:30:17 +10:00
2015-08-25 18:33:52 -04:00
2015-07-23 07:38:13 +02:00
2015-08-25 18:33:52 -04:00
2014-01-13 18:11:08 -05:00
2016-02-11 13:11:25 +01:00
2016-02-11 13:11:25 +01:00
2015-08-19 03:42:00 +02:00
2014-06-29 18:17:56 +02:00
2014-12-31 02:44:31 +10:00
2015-11-06 08:51:14 +01:00
2015-11-06 08:51:14 +01:00
2015-12-07 13:51:41 -05:00
2015-09-16 17:39:49 +02:00
2016-02-11 16:55:15 +01:00
2016-02-11 13:11:25 +01:00
2015-12-06 11:38:03 +01:00
2016-02-19 21:31:22 +01:00
2016-02-19 21:31:22 +01:00
2016-03-02 23:23:31 -05:00
2015-10-31 13:28:58 -04:00
2015-10-31 13:28:58 -04:00
2015-08-25 18:33:52 -04:00
2015-12-06 11:38:03 +01:00
2016-02-11 16:55:15 +01:00
2015-08-25 18:33:52 -04:00
2015-12-07 13:51:41 -05:00
2015-12-07 13:51:41 -05:00
2015-08-23 22:04:06 -04:00
2015-08-23 22:04:06 -04:00
2014-11-19 16:21:59 -05:00
2015-11-13 02:35:02 +01:00
2015-08-25 18:33:52 -04:00
2015-01-23 21:38:34 +10:00
2015-08-23 22:04:06 -04:00
2016-02-11 16:55:15 +01:00
2016-02-11 16:55:15 +01:00
2015-08-25 18:33:52 -04:00
2015-03-27 15:00:48 -04:00
2016-02-11 16:55:15 +01:00