Skip to content

Instantly share code, notes, and snippets.

@boyte
Last active March 25, 2021 01:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boyte/13c8f09b4f00bde1407582698f172a2c to your computer and use it in GitHub Desktop.
Save boyte/13c8f09b4f00bde1407582698f172a2c to your computer and use it in GitHub Desktop.
scratchpad
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MarkQueppet
Copy link

Hey, this is awesome. I don't really know python, but I love roam. I set up a jupyter notebook to try and figure a tweak but am getting stuck.

Instead of just having a week be like 2021-W12, I want my format to look something like this: 2021.w12 - 03.21 - 03.27 and show the range of dates, as week numbers aren't something that my brain knows exactly how to process.

How would I modify this script to get the first and last day of the week added to it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment