date '+scale=2;((%H*60+%M)*60+%S.%N)/8640' | bc

#Linux #DecimalTime

@ruari nice ... I totally missed the hashtag there and had parsed that one out manually ... do like me a printf/strftime hack ... :)

RE: https://velocipederider.com/@ruari/115475170910895200

@mherbert It was the shortest oneliner I have come up with so far to present the time in decimal for when I have to set my watch.

Though if I am truely honest I would usually just load

https://decimalnow.com/home

Or these days I also have a Garmin that can display in decimal time and that updates automatically, so I can just read it off that.

@ruari ... it was fun to unpack, well done ... given you're smashing that to two significant places I'd probably have dropped anything smaller than a minute, but I totally understand why you didn't ... :)

@mherbert Yeah thinking out the logic is

1. Fun
2. Helps me to really understand what I want to achieve and helps to visualise what I am working with.