cc.journeyman.the-great-game.time
TODO: write docs
date-string
(date-string game-time)
Return a correctly formatted date for this game-time
in the calendar of the Great Place.
day-of-year
macro
(day-of-year game-time)
The day of the year represented by this game-time
, ignoring leap years.
days-of-week
The eight-day week of the game world. This differs from the canonical ordering of houses in that it omits the eye.
game-day-length
The Java clock advances in milliseconds, which is fine. But we need game-days to be shorter than real world days. A Witcher 3 game day is 1 hour 36 minutes, or 96 minutes, which is presumably researched. Round it up to 100 minutes for easier calculation.
game-time
(game-time)
(game-time timestamp)
With no arguments, the current game time. If a Java timestamp
value is passed (as a long
), the game time represented by that value.
now
(now)
For now, we’ll use Java timestamp for time; ultimately, we need a concept of game-time which allows us to drive day/night cycle, seasons, et cetera, but what matters about time is that it is a value which increases.
seasons-in-year
Nine seasons in a year, one for each house (although the order is different.
seasons-of-year
The ordering of seasons in the year is different from the canonical ordering of the houses, for reasons of the agricultural cycle.
weeks-in-season
To fit nine seasons of eight day weeks into 365 days, each must be of five weeks.
weeks-of-season
To fit nine seasons of eight day weeks into 365 days, each must be of five weeks.