[MacTUG] Meeting Tuesday, November 28, 2017 DC 3317
Dani Roloson
daroloso at uwaterloo.ca
Wed Nov 22 15:31:36 EST 2017
Or if I change it to
log date string of (firstTime - ((((3 + (weekday of firstTime)) mod 7) + 1) * days))
(*Tuesday, January 30, 2018*)
(*Tuesday, February 27, 2018*)
(*Tuesday, March 27, 2018*)
(*Tuesday, April 24, 2018*)
(*Tuesday, May 29, 2018*)
(*Tuesday, June 26, 2018*)
(*Tuesday, July 31, 2018*)
(*Tuesday, August 28, 2018*)
(*Tuesday, September 25, 2018*)
(*Tuesday, October 30, 2018*)
(*Tuesday, November 27, 2018*)
________________________________
From: Dani Roloson
Sent: November 22, 2017 1:18:47 PM
To: MacTUG [mactug at mailman.uwaterloo.ca]
Subject: Meeting Tuesday, November 28, 2017 DC 3317
Note the change in room and building.
Since I haven't seen any objections, I'm asking Devon to book the same room for next year.
I wrote a little AppleScript to generate the list of dates.
________________________________
repeat with monthNumber from 2 to 12
-- start with the first of Feb through Dec
set firstString to (monthNumber as string) & "/1/2018"
set firstTime to date firstString
-- we want the last Tuesday (which is a 3) of the previous month
-- so subtract 7 days if the first is a Tues, and 1 day if a Wed
-- which means the math is as follows
log firstTime - ((((3 + (weekday of firstTime)) mod 7) + 1) * days)
end repeat
________________________________
(*date Tuesday, January 30, 2018 at 12:00:00 AM*)
(*date Tuesday, February 27, 2018 at 12:00:00 AM*)
(*date Tuesday, March 27, 2018 at 12:00:00 AM*)
(*date Tuesday, April 24, 2018 at 12:00:00 AM*)
(*date Tuesday, May 29, 2018 at 12:00:00 AM*)
(*date Tuesday, June 26, 2018 at 12:00:00 AM*)
(*date Tuesday, July 31, 2018 at 12:00:00 AM*)
(*date Tuesday, August 28, 2018 at 12:00:00 AM*)
(*date Tuesday, September 25, 2018 at 12:00:00 AM*)
(*date Tuesday, October 30, 2018 at 12:00:00 AM*)
(*date Tuesday, November 27, 2018 at 12:00:00 AM*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20171122/ae359286/attachment-0001.html>
More information about the MacTUG
mailing list