travisfw,
@travisfw@fosstodon.org avatar

I am prepping an initial release of a set of bash functions I have been using for a while to make unix time more useful and easy to parse visually. It names levels of precision as year, month, day, and time.

I was inspired to write this years ago when I was naming and rotating logs and realized when Unix time is represented as hexadecimal the whole thing is 8 digits and various substrings actually match up not too badly with the length of Gregorian units on a log scale.

travisfw,
@travisfw@fosstodon.org avatar

So if you wish for a way to represent time with short hexadecimal strings (doing away entirely with all the different factors in Gregorian time like 60, 7, 30 ±2, and 365) you got it. Stay tuned. If anyone anywhere likes it, I'll rewrite it in Kotlin, ditching dependency on Bash, dc, date, and coreutils. But I'll clean up and maintain the old bash functions too. I've been using them myself for enough years.

ssoper,

@travisfw I’m intrigued

travisfw,
@travisfw@fosstodon.org avatar

@ssoper it's called #hexunixtime and I'll use that hashtag to announce when I publish. It's a simple thing, but honestly that's the best thing about it.

travisfw,
@travisfw@fosstodon.org avatar

I documented and released hexunixtime bash utilities on Source Hut.
https://hg.sr.ht/~travisfw/hexunixtime/raw/README.adoc?rev=trunk
It's documented in asciidoc, which is somewhat less nice than markdown when viewed as a text file, but there is a browser plugin for asciidoc which will render the linked file in your browser effortlessly. If asciidoc is annoying, toot me and I'll just strip out the tables.

Clone like so:
hg clone <https://hg.sr.ht/~travisfw/hexunixtime/>

CC: @ssoper

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines