jaitaiwan
We’ve got a good base of a project here, I found another interesting time keeping method that could be interesting and worth creating a separate package for: https://metric-time.com/
#5 · open · 2 comments
We’ve got a good base of a project here, I found another interesting time keeping method that could be interesting and worth creating a separate package for: https://metric-time.com/
What do you think @djdv ? Do we expand the library or nah?
Pretty neat standard. I like simpler number systems like that. Nice plain website too. Probably wouldn't be appropriate to put it in this package due to the specific name `go-swatch`, but I agree that this repo could be used as a base/template to create a new `go-metric-time` package. Where the conversion algorithm, formatting, and tests get swapped out. Personally, I don't have a use for such a format, but wouldn't be opposed to implementing it or reviewing an implementation of it if you think it'd be useful. :^] (Never know, I might end up adopting it somewhere later.) --- Extra thought: Maybe there could be a 3rd umbrella package like `go-times` that wraps the constructors or some common utility logic if necessary, but I doubt there's enough overlap between them to justify something like that (as apposed to just using either time pkg directly). I.e. `t := times.New(goStdTime, time.Swatch); t :=times.New(goStdTime, time.Metric)` or something like that. But again `swatch.New` and `metric.New` seem direct enough.