The IC Time plugin lets you track an IC date/time that’s different from the OOC time.
To configure the IC Time plugin:
Table of Contents
Because this system uses built-in Ruby date libraries, there are some limitations. It assumes that your IC calendar mirrors RL’s: 7 days a week, 365 days a year (except on leap years), 12 months a year with the same lengths (month 1 -> 31 days, month 2 -> 28 days, etc.).
These conversions may occasionally give you odd results. For example - if today is 2/29/2016 (a leap year) and your date offset is 10 years - there’s a problem because 2/29/2026 is NOT a leap year. That date is invalid, so the game will jump to 3/1/2026 and stay there until March 2nd. So you end up with a really long March 1st ICly.
If you need a more robust IC calendar, you’ll need to write custom code. But for a quick-and-dirty system, this one should fit the needs of many games.
You can shift IC time by a number of years compared to RL.
For example, assume it’s currently 2017 in RL. To make it 1817 you would set the
year_offset to -200. June 1, 2017 would then become June 1, 1817.
year_offset: -200 day_offset: 0
You can also shift the game to be a number of days ahead of or behind RL. You might want to do this if you had a particular starting date in mind (like you wanted to start a WWII game on D-Day even though it wasn’t June in RL).
For example, if it’s June 1, 2017 and you want the date to be 200 years and 6 months ahead of RL, you can do:
year_offset: 200 day_offset: 180
June 1, 2017 would then become roughly Dec 1, 2217.
Tip: The exact day it shifts ahead to will vary due to months having different lengths. Just keep adjusting the day offset until you get the starting date you want. From there it will advance normally as time passes.
The IC date defaults to using the game’s locale language for its month and day names. If your game uses a different calendar, you can change the month and day names. The system uses a 7-day week and 12-month year, same as RL.
The default time ratio is 1, meaning that IC time passes at a 1:1 ratio compared to RL time. For every day that passes in the real world, a day passes in the game world.
You can change this ratio to make IC time pass slower or faster.
To make this work, you also need to set
game_start_date, which is the RL date that the clock starts running.
For example: Assume your game started on 6/1/2018. It is now June 10th 2018 in RL, meaning 10 days have passed since the game started. If your time ratio was 2, the IC date would be June 20th. If your time ratio was 0.5, the IC date would be June 5th.