Code Monkey home page Code Monkey logo

Comments (3)

ebullient avatar ebullient commented on June 23, 2024 1

For any wonky calendar with intercalary days, the safer bet will be to use month/day names instead of numbers if you don't want to learn the name-to-index mapping.

Harptos numbering gets real weird because Greengrass and sometimes Shieldmeet, for example.

There is an alternate date mechanism that is already present (or was). Assuming tests still run, see here for syntax: https://github.com/javalent/the-calendarium/blob/main/test/event.parseFcString.harptos.test.ts

How you cross that with repeating is interesting. But in the case of writing dates back to frontmatter, I think sticking with the long-form for some calendars is going to be more reliable than translating to/from a numerical index.

from calendarium.

sigrunixia avatar sigrunixia commented on June 23, 2024

Control Reoccurring Events in Frontmatter

@namtrah
Have debugged it to realize it was User Error. But I found that what I want just doesn't exist in the frontmatter for FC.

Would like to use this now to reopen as a feature request to add some sort of front matter so that with a fc-date: YYYY-MM-DD and a second option fc-every: nnn meaning the number of days fc-date reocurrs.

I know it is maybe difficult, But just want to expose the functionality in the UI of allowing an event to happen every n days. This could be useful to add then such things as Birthdays of characters (or real live people) in Frontmatter without having to use the UI.

@WovenTales
+1, and for the same purpose. It doesn't make much sense to be marking birthdays before the character is born (even if I could get the structured-date-object syntax to show up on the calendar).

I'm not sure counting days is the final solution, though; how does that handle years with different numbers of days? Still, an fc-every: 1y seems like it would do really well.

EDIT: Though, I guess that would have its own issues in what to do if you want something to repeat every year on February 29

  • Yay
  • Nay
  • Implemented

from calendarium.

ckennedy666 avatar ckennedy666 commented on June 23, 2024

In the real world my anniversary is every 4 years on February 29th. Sometimes just let leap day be leap day.

from calendarium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.