Skip to content
Edith

Docs

Command reference

ed calendar availability

Finds open times inside your working hours that fit a meeting length and prints a clean list in the time zone you choose. Event titles, people, places, notes and links never appear in the output or on the clipboard.

Output
ed calendar availability [--duration <minutes>] [--days <n>] [--from <HH:mm>]  [--to <HH:mm>] [--timezone <zone>] [--work-timezone <zone>] [--weekends]  [--tentative-free] [--all-day-busy] [--clock 24|12] [--copy] [--json]

ed calendar free is an alias.

Options

Name Type / values Default What it does
--duration <minutes> 5 through 480, steps of 5 30 Only open times at least this long are listed
--days <n> 1 through 60 7 Look from today through this many days
--from <HH:mm> 00:00 through 23:59 09:00 Start of the working day in --work-timezone
--to <HH:mm> 00:01 through 24:00 18:00 End of the working day in --work-timezone
--timezone <zone> IANA name the Mac's zone Zone the list is written in
--work-timezone <zone> IANA name the Mac's zone Zone your working hours are measured in
--weekends flag off Include Saturdays and Sundays
--tentative-free flag off Tentative events no longer block time
--all-day-busy flag off Every all-day event blocks its whole day
--clock 24|12 24 or 12 24 14:00 or 2:00 PM
--copy flag off Also put the list on the clipboard
--json flag off Emit JSON on stdout

What counts as busy

  • Overlapping and back-to-back events merge into one busy stretch.
  • Timed events block time unless they show as free, are canceled, or you declined them. Tentative events block time unless --tentative-free is set.
  • An all-day event blocks its whole day when it shows as busy, tentative or out of office. All-day events with no availability, such as birthdays and holidays, leave the day open unless --all-day-busy is set. A multi-day event blocks every day it covers. The day is the calendar date the event is on, so a holiday on 10 March blocks 10 March in --work-timezone too.
  • Open times start no earlier than now and are trimmed to quarter hours.

Output

Output
Available for 30 minutes. Times in America/New_York.Fri 6 Mar (GMT-5): 22:30 - 07:30 next daySun 8 Mar (GMT-4): 23:30 - 08:30 next day

Days are grouped in --timezone. A range that ends after midnight there says next day. When the zone's offset changes inside the range, for example across a daylight saving change, each day shows its own offset; otherwise the offset appears once in the first line. A range that spans the change itself shows the offset on both times, such as 01:00 GMT-4 - 03:00 GMT-5, so the repeated hour is never ambiguous. With no open time the command prints no open times for a 30 minute meeting in the next 7 days, exits 0 and copies nothing.

--json prints durationMinutes, days, from, to, timeZone, workTimeZone, slots (each with start, end in ISO 8601 UTC and minutes), text (the list above) and copied.

Exit codes

Code When
0 The list was printed, including an empty result
2 An option was out of range, a time was not HH:mm, --from was not before --to, or a zone name was unknown
4 The app, the Calendar extension or calendar access was unavailable, or the clipboard could not be written