Skip to content
binarriiPublic

About

Add clocks for multiple time zones to your macOS menu bar.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

MoreClock

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Deutsch · Français · Español · Italiano · Português (Brasil) · Русский · العربية · فارسی

Extra clocks for the macOS menu bar, one menu bar item per time zone.

Buy Me a Coffee at ko-fi.com

Screenshots

MoreClock showing a second time zone in the macOS menu bar

MoreClock General settings in Simplified Chinese MoreClock Clocks settings in Simplified Chinese

Features

  • Any number of clocks. Each has a name, its own time zone, prefix (such as a flag emoji or "SF"), optional seconds, optional bold text, and an optional date: weekday, date, or both ("Tue", "Nov 17", "Tue, Nov 17").
  • The date is formatted for the user's locale and calendar, and uses each clock's own time zone. A Honolulu clock can show a different day from a Tokyo clock.
  • Names: a clock's name defaults to the place picked in the search ("Kyoto"), otherwise the time zone's city ("Tokyo") or offset ("UTC+5"). You can type your own ("Mom", "Berlin office"). Names appear in Settings and the clock's menu; the menu bar shows the prefix, date and time.
  • Default prefix: selecting a city or time zone fills an empty Prefix with the matching country or region flag. Your existing text or emoji is preserved. UTC and fixed offsets have no default flag.
  • Follows the system 12/24-hour setting.
  • Updates just after each minute boundary. A clock with seconds on ticks every second.
  • Time zone picker:
    • offline matches by city, identifier, zone name ("Pacific Time") or offset ("UTC+5:30")
    • MapKit place search ("Tokyo", "Norway")
    • Hong Kong and Macau retain Asia/Hong_Kong and Asia/Macau even when Maps reports their region as CN and zone as Asia/Shanghai. Earlier saved clocks with that exact city/zone mismatch are repaired on launch, preserving the other settings.
    • Other single-zone regions use their own IANA identifier; multi-zone regions keep Maps’ coordinate-based result.
  • Each clock's menu shows the full date, the UTC offset, the difference from local time, Copy Time and Hide This Clock.
  • ⌘-drag to reorder clocks. Drag a clock out of the menu bar to hide it.
  • Settings: three toolbar tabs: General (launch at login, language and system settings links), Clocks, and About (version, build, commit, build time, and links to the website and GitHub). The selected tab is remembered. Each clock has a collapsible section (the first is expanded). Removing a clock asks for confirmation.
  • Localized into English, Simplified and Traditional Chinese, Japanese, Korean, German, French, Spanish, Italian, Brazilian Portuguese, Russian, Arabic and Persian, including right-to-left layout for Arabic and Persian.
  • Launch at login through SMAppService.

Requirements

  • macOS 26 or later
  • Xcode 26 or later. Built and tested with Xcode 27.1.
  • XcodeGen (brew install xcodegen). The .xcodeproj is generated from project.yml, so edit project.yml and regenerate rather than changing project settings in Xcode.

Build and run

xcodegen generate
open MoreClock.xcodeproj

Or from the command line:

xcodebuild -project MoreClock.xcodeproj -scheme MoreClock -derivedDataPath build/DerivedData build
open build/DerivedData/Build/Products/Debug/MoreClock.app

For a release build, use the script. It builds the universal app and records the commit (marked -dirty for uncommitted changes) and build time shown in Settings › About. Other builds show only the version and build number.

Scripts/build-release.sh

The app has no Dock icon. On first launch it opens Settings. Open the app again from Finder or Spotlight to show Settings at any time, which is the way back if every clock is hidden.

If a clock doesn't appear, the notch or other items may be covering it, or macOS may be hiding it. Check System Settings › Menu Bar (on macOS 26).

Tests

The logic lives in the MoreClockKit package and is tested with Swift Testing:

swift test --package-path Packages/MoreClockKit

The Xcode scheme also runs these tests (⌘U, or xcodebuild … test -destination 'platform=macOS').

Localization

  • Language control: Settings › General › Language uses the native per-app AppleLanguages preference, shared with macOS System Settings. System Default removes the app override and follows the system language. Choose Relaunch Now to apply a change; Settings opens again in the new language. Changes made externally are reflected when MoreClock becomes active.

  • Catalog: UI and menu strings live in MoreClock/Resources/Localizable.xcstrings.

  • Adding a string: use a string literal in SwiftUI, or String(localized:) / LocalizedStringResource elsewhere. Then add the key to the catalog, either in Xcode or by building, which extracts new keys.

  • Formatting: dates, times and durations come from Foundation format styles, so they follow the user's locale, numbering system and calendar. Persian shows Solar Hijri dates with Persian digits. Arabic in Saudi Arabia shows Umm al-Qura dates.

  • Testing a language without changing the system language:

    open build/DerivedData/Build/Products/Debug/MoreClock.app --args -AppleLanguages '(ar)'

App icon

  • File: MoreClock/Resources/AppIcon.icon is an Icon Composer file: three Liquid Glass clock faces on an icy gradient.

  • Looks: it adapts to the macOS 26 Default, Dark, Tinted and Clear appearances. You can open and tweak it in Icon Composer (inside Xcode).

  • Regenerating: the layer artwork is drawn in code. Regenerate the layers and the Design/AppIcon/preview.png sheet with:

    ./Design/AppIcon/render.sh

Layout

project.yml                 XcodeGen spec (targets, Info.plist keys, entitlements, scheme)
Packages/MoreClockKit/      Pure logic + tests
  ClockConfig.swift         Clock model (Codable, tolerant decoding) and TimeZoneSelection
  ClockStore.swift          @Observable store, JSON in UserDefaults "clocks"
  ClockFormatter.swift      12/24h-aware titles, optional date part, long date line, offset differences
  TimeZoneParsing.swift     "UTC+5:30" / identifiers / abbreviations, labels, offline search
  SettingsIPC.swift         JSON-lines pipe IPC protocol and channel
MoreClock/
  App/                      AppKit entry point, app delegate, SettingsProcessController, hidden main menu
  MenuBar/                  ClockTicker (aligned timers) and StatusItemController (one item per clock)
  Resources/                String Catalog (Localizable.xcstrings), AppIcon.icon
MoreClockSettings/          On-demand Settings helper app, exits when closed
  App/                      Helper entry point, IPC session, window lifecycle, menu
  Settings/                 Settings window (SwiftUI Form), language and About tabs
  TimeZonePicker/           Picker popover and MapKit search
Design/AppIcon/             Icon layer generator (layers.swift), render + preview scripts

Before shipping

  • Application identity: the bundle identifier is com.skyviiew.MoreClock, configured in project.yml. Preferences, sandbox storage, and per-app language settings use this identity.
  • Signing: local and GitHub builds use ad-hoc signing (CODE_SIGN_IDENTITY: "-"). Developer ID signing and Apple notarization require the appropriate signing certificate and credentials.
  • Place search: the app is sandboxed without com.apple.security.network.client. Check that place search works in a signed build. If it doesn't, add that entitlement in project.yml.
  • Translations: a native speaker should review them before release. They were machine-drafted and machine-reviewed.

About

Add clocks for multiple time zones to your macOS menu bar.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages