seanohue / fantasy-time-crunch

A way of handling time and time-related state changes in a highly customizable way, for use with games and virtual worlds
8 stars 6 forks source link

the day of the week thing #3

Open ratacat opened 4 years ago

ratacat commented 4 years ago
 onIncrement() {
      const names = 'MTWHFSU';
      console.log('Day:', names[this.time.day - 1]);
    },

seems like there isn't any current conversion for days (1-30~) to weekdays. for me this.time.day returns 1 to 30~ not 1-7.

seanohue commented 4 years ago

Since this is intended for fantastical time systems, for the most part, I would want to make it something more abstract. For instance a way of defining conversions between different units (in this case, day of the month to day of the week).