# cc.journeyman.the-great-game.time documentation

## Generated by Codox

# The-great-game 0.1.2-SNAPSHOT

# cc.journeyman.the-great-game.time

TODO: write docs

### canonical-ordering-of-houses

The canonical ordering of religious houses.

view source

### date-string

`(date-string game-time)`

Return a correctly formatted date for this `game-time` in the calendar of the Great Place.

view source

### day

`(day game-time)`

Day of the eight-day week represented by this `game-time`.

view source

### day-of-year

#### macro

`(day-of-year game-time)`

The day of the year represented by this `game-time`, ignoring leap years.

view source

### days-in-season

TODO: write docs

view source

### days-in-week

This world has an eight day week.

view source

### 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.

view source

### 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.

view source

### game-start-time

The start time of this run.

view source

### 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.

view source

### 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.

view source

### season

`(season game-time)`

TODO: write docs

view source

### seasons-in-year

Nine seasons in a year, one for each house (although the order is different.

view source

### 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.

view source

### waiting-day?

Does this `game-time` represent a waiting day?

view source

### week

`(week game-time)`

Week of season represented by this `game-time`.

view source

### weeks-in-season

To fit nine seasons of eight day weeks into 365 days, each must be of five weeks.

view source

### weeks-of-season

To fit nine seasons of eight day weeks into 365 days, each must be of five weeks.

view source