SHORTLIST20
中文
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
编程

Go (Golang) date and time libraries

Parsing, formatting and time-zone libraries for Go, ranked by GitHub stars

更新于 · GitHub stars (stars)

为什么是这20个

Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence and the last push. Tools without a public repository have no star count and can't be ranked here.

这份清单有用吗?
  1. 1

    dromara/carbon

    A simple, semantic and developer-friendly time package for golang.

    5,225 stars 279 forkslast push 2026-11-20GoMIT

  2. 2

    now

    Now is a time toolkit for golang.

    4,714 stars 247 forkslast push 2026-02-02GoMIT

  3. 3

    dateparse

    Parse date's without knowing format in advance.

    2,141 stars 178 forkslast push 2023-12-30GoMIT

  4. 4

    uniplaces/carbon

    Simple Time extension with a lot of util methods, ported from PHP Carbon library.

    779 stars 55 forkslast push 2024-01-17GoApache-2.0

  5. 5

    durafmt

    Time duration formatting library for Go.

    508 stars 56 forkslast push 2021-06-08GoMIT

  6. 6

    go-persian-calendar

    The implementation of the Persian (Solar Hijri) Calendar in Go (golang).

    244 stars 29 forkslast push 2025-09-28GoMIT

  7. 7

    gostradamus

    A Go package for working with dates.

    208 stars 6 forkslast push 2024-12-20GoMIT

  8. 8

    timeutil

    Useful extensions (Timedelta, Strftime, ...) to the golang's time package.

    193 stars 15 forkslast push 2019-02-03GoMIT

  9. 9

    go-sunrise

    Calculate the sunrise and sunset times for a given location.

    178 stars 21 forkslast push 2024-04-23GoMIT

  10. 10

    iso8601

    Efficiently parse ISO8601 date-times without regex.

    170 stars 25 forkslast push 2026-10-29GoMIT

  11. 11

    date

    Augments Time for working with dates, date ranges, time spans, periods, and time-of-day.

    142 stars 26 forkslast push 2026-10-23GoBSD-3-Clause

  12. 12

    go-str2duration

    Convert string to duration. Support time.Duration returned string and more.

    125 stars 11 forkslast push 2026-09-14GoBSD-3-Clause

  13. 13

    timespan

    For interacting with intervals of time, defined as a start time and a duration.

    84 stars 12 forkslast push 2019-03-19GoMIT

  14. 14

    feiertage

    Set of functions to calculate public holidays in Germany, incl. specialization on the states of Germany (Bundesländer). Things like Easter, Pentecost,...

    55 stars 9 forkslast push 2026-05-18GoMIT

  15. 15

    go-anytime

    Parse dates/times like "next dec 22nd at 3pm" and ranges like "from today until next thursday" without knowing the format in advance.

    37 stars 4 forkslast push 2026-09-11GoMIT

  16. 16

    kair

    Date and Time - Golang Formatting Library.

    24 stars 6 forkslast push 2020-06-18GoMIT

  17. 17

    timex

    A Go package that extends the standard library time with dedicated date and time-of-day types.

    23 stars 1 forkslast push 2026-10-27GoMIT

  18. 18

    approx

    A Duration extension supporting parsing/printing durations in days, weeks and years.

    19 stars 2 forkslast push 2026-11-09GoBSD-3-Clause

  19. 19

    cronrange

    Parses Cron-style time range expressions, checks if the given time is within any ranges.

    18 stars 6 forkslast push 2022-09-04GoMIT

  20. 20

    tuesday

    Ruby-compatible Strftime function.

    14 stars 3 forkslast push 2026-08-26GoMIT

如何衡量

Every tool in the Date and Time section(s) of the community list avelino/awesome-go on GitHub with a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Added by the daily list generator.

参考资料

  1. avelino/awesome-go: Date and Time, GitHub community list (list text MIT; star counts from the GitHub API). Checked 2026-11-20 22:11 UTC.
  2. avelino/awesome-go (Date and Time), GitHub community list, 25 tools with a public repository.