Hi, I created this little library that adds first-level support for durations via a tagged literal: #unit/duration "2D 10h 5m 10s" This creates a java.time.Duration with a value of 2 days 10 hours 5 minutes and 10 seconds.
It also makes it easy to quickly turn some huge milliseconds amount into something human digestible: (duration-of-millis 1234567) ; => #unit/duration "20m 34s 567ms" I found this really useful when scheduling periodic background tasks, specifying timeouts, measuring the runtime of some code or anyplace where you work with durations. You can find more on motivation and usage examples on GitHub: https://github.com/gerrit-hntschl/clj-duration Hope it is helpful to somebody in the community! Cheers, Gerrit -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.