Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Since I've seen a few comments about units not having lightseconds so here are a few ways to add the missing unit if you don't have it.

1) Add this line under the lightyear definition in /usr/share/misc/units.lib (or wherever `man units` says the standard units library is under the FILES section)

    lightsecond lightyear / 365.25 / 24 / 60 / 60
2) If you're on a mac and use homebrew just `brew install gnu-units` and then run `gunits`


That's the speed of light in a vacuum ... through fiber-optic cable the speed of light is about two-thirds that value.


I did #2, then:

sudo mv units macunits sudo ln -s $(which gunits) units


or use brew install option --with-default-names and put your homebrew at the start of your path.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: