```space-lua
function get_quarter_by_number(month_num)
-- month_num: Number 1..12 (or String "01".."12")
local m = tonumber(month_num)
if not m then return nil end
return math.floor((m - 1) / 3) + 1
end
This function helps me calculate the current quarter.
I have two journal setups that I use daily: I have morning pages, where I try to dump everything that’s in my brain in a stream of consciousness, trying to write at least 500 words; I also have a daily journal that I write in interstitially throughout the day, making use of the /time command to write a sentence every once in a while about what I’m working on or thinking or who I’ve talked to.
At work, this helps a lot during quarterly review time, since I have records of progress per day. On a personal level, it helps me recognize progress and trends that I normally am too close to see.
Here’s the /time command, living in Library/drhayes/Slash Templates/time:
---
description: Insert the current time.
tags: meta/template/slash
---
${os.date('%H:%M')}|^|
Here’s my Morning Pages template, living at Library/drhayes/Page Templates/Morning Pages:
---
command: 'Journal: Morning Pages'
suggestedName: 'Daily/Morning Pages/${date.today()}'
confirmName: false
openIfExists: true
tags: meta/template/page
---
---
tags: morningpages, journals
---
# How are you feeling?
|^|
# What are you grateful for?