In defence of Gy, it isn't meaningless in astronomy - it's a very well used unit. Though I do agree that it might be less common in code.
I myself can't remember seeing Gy in astronomical papers, but I've seen Ga (gigaannum).
Ga is indeed used as well.
https://en.wikipedia.org/wiki/Billion_years
Isn’t Gy a bit much even in astronomy? With 15 Gy you have the age of the universe right?
Re:Please put units in names
by em3rgent0rdr on Monday March 21, 2022 @04:30AM
(#30751656)
Your comment piqued my curiosity, and I looked at https://en.m.wikipedia.org/wiki/Future_of_an_expanding_unive... and found:
"Stars are expected to form normally for 10^12 to 10^14 (1–100 trillion) years"
So it seems Gy and even Ty units will be a reasonable scale for events during the period of star formation.
In my opinion this is not a real problem, since ideally no-one should such meaningless abbreviations in code. Just write giga_years or GigaYears or whatever your style is, problem solved, doesn't get any clearer than that.