Skip to content

Adds TZ sorting option#24

Merged
merschformann merged 5 commits intomainfrom
merschformann/tz-sorting
Mar 3, 2025
Merged

Adds TZ sorting option#24
merschformann merged 5 commits intomainfrom
merschformann/tz-sorting

Conversation

@merschformann
Copy link
Copy Markdown
Owner

@merschformann merschformann commented Feb 25, 2025

Description

Adds a TZ sorting option to gotz. This allows the user to define the timezones arbitrarily and then sort them via offset (sorts by the timezone's offset compared to UTC) or via name (sorts lexicographically).

Changes

  • Adds -sorting option allowing the user to sort their timezones independent of the configuration.
    • none - keeps the user defined order
    • offset - sorts by the offset compared to UTC
    • name - sorts lexicographically using the user-defined name
  • Adds -sort-local-top option allows keeping the local timezone at front while sorting the others via an option.

Resolves #20

@merschformann merschformann merged commit 504169b into main Mar 3, 2025
1 check passed
@merschformann merschformann deleted the merschformann/tz-sorting branch March 3, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support sorting of timezones in output

1 participant