monochrome scarab lineart

2025-11-26,
of scripts and the past

Mâche, Wednesday, 26 November 12025 HE
Mâche, Sextidi, 6 Frimaire An CCXXXIV
B, a.d. VI Kal. Dec. AUC MMDCCLXXVIII
13.0.13.2.3, 8 Ak’b’al 1 Mak, Tlazolteotl
19X08 | 2461006

sycamore trunk, San José, California

2012-11-14 – Olympus PEN E-PL1
sycamore trunk, San José, California

Burnout Syndromes – “Blizzard” ↗

* * *

most of the scripts I’ve munged together are plain shell scripts, usually just reformatting output from date – but the one handling the “day before” / ”month before” block at the end of the pages is slightly (just slightly) more complex – it calls awk in order to make use of its strftime() and mkdate() functions

strftime() turns a timestamp into a formatted string – but the real star is mkdate() which takes a date string and turns it into that timestamp – the values of each of the fields are recommended to be constrained (ie. days between 01 and 31) but are not required to be in range – I can exploit this and feed something like “–31 of January” into mkdate() and it will do the work of figuring out the real month and day “–31 Jan” falls on

* * *

the day after
the day before
the month before
the quarter before
the year before

rss