Can you have a different supertag applied to your day nodes based on a specific interval?

Background

Recently the community discovered a peculiar thing was possible with regards to Calendar/Journal nodes. It was code that was put in a while back when we were thinking about how to revamp the calendar nodes, a project we had to shelf for other priorities. It was code that is the wee beginnings of how to do recurring calendar node templates.

In the Journal node section of your settings, you'll see this:

There's an expression you can use to define intervals of when you want certain supertags applied to certain calendar nodes. It is loosely based on the cron format (opens Wikipedia)

In the field values for defining which supertag to use, you can nest the tags under a cron expression to have it apply only during a certain interval The expression takes on this custom format: DAY-OF-MONTH MONTH DAY-OF-WEEK YEAR

Legend: Cron format

DAY-OF-MONTH

  • 1-31

MONTH

  • 1-12, or JAN-DEC

DAY-OF-WEEK

  • MON-SUN, or 1-7

YEAR

  • 2024

Common syntax in cron

  • * (asterisk) represents "every" possible value for that field.
  • ? (question mark) is used to specify "no specific value" and is often used where the day of the month or day of the week should be ignored.
  • , (comma) is used to separate discreet values

How to use in Tana

Specify the cron expression as a field value, and nest the supertag you want used at that interval.

Here are some pattern examples from u/syncretizm on Reddit

Specific day of the week:

  • ? * FRI * = Every Friday

Only weekdays:

  • ? * MON-FRI * = Every weekday

Specific date in a month every year:

  • 31 12 * * = Last day of the year

Last day of any month:

  • L * ? * = Last day of the month

Every day in a specified month:

  • * 3 * * = Every day in March

Here are even more patterns, courtesy of GPT

A specific day of every month:

  • 15 * * * = The 15th day of every month.

Specific days of the week throughout the year:

  • * * MON,WED,FRI * = Every Monday, Wednesday, and Friday of every week.

First day of each quarter:

  • 1 1,4,7,10 * * = January 1, April 1, July 1, and October 1.

Last weekday of a specific month:

  • LW * SEP * = Last weekday of September.

Specific day of the week in a specific month:

  • * 11 FRI * = Every Friday in November.

A day near the end of the month, every month:

  • L-3 * * * = The third-to-last day of every month.

An annual event on a specific day and month:

  • 14 2 * * = Every February 14th.

First Monday of every month:

  • 1-7 * MON * = The first Monday that occurs between the 1st and 7th of every month.

Specific day of the week, only in certain months:

  • * JAN,MAR,JUL FRI * = Every Friday in January, March, and July.

A specific day if it is a weekday:

  • 5 * MON-FRI * = The 5th of the month if it is a weekday.

Skipping years for an annual event:

  • 10 10 * * 2023/2 = October 10th, starting in 2023 and every two years thereafter.
Note that it will only apply to all new day nodes once the rule is established. It will not apply to existing nodes.