sy 2.0.24 → 2.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sy.rb +11 -0
- data/lib/sy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24baeaf62c901ccf786273b745e8618c4a1b23b7
|
4
|
+
data.tar.gz: 39ba8642548ca65e7e90549c12f8f7415688f57d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b402d3d0e1e6caa97a717680ee62fd00b0f47452fa07e39fd75dd50be421c71754e9ba505b4ee15c3b4853bd05faa33ba338658c58f6f5de5c84290e062a54c8
|
7
|
+
data.tar.gz: ec3ad67eccf83dd9e0034c9f6734616defb5ea20e74e709f9a7150cf3cd43d17da5efe9d0324f30cb7f559cec5c8dae76925fdf5ad13d1eb11ae3cd32ee58de0
|
data/lib/sy.rb
CHANGED
@@ -124,6 +124,14 @@ module SY
|
|
124
124
|
MINUTE = Unit.of Time, short: "min", amount: 60 * SECOND
|
125
125
|
# And SY::HOUR another:
|
126
126
|
HOUR = Unit.of Time, short: "h", amount: 60 * MINUTE
|
127
|
+
# SY::DAY is defined in accordance with SI as 86_400.second
|
128
|
+
DAY = Unit.of Time, amount: 24 * HOUR
|
129
|
+
# SY::WEEK means exactly seven days
|
130
|
+
WEEK = Unit.of Time, amount: 7 * DAY
|
131
|
+
# Average lunar month.
|
132
|
+
SYNODIC_MONTH = 29.530589 * DAY
|
133
|
+
# Julian year.
|
134
|
+
YEAR = JULIAN_YEAR = 365.25 * DAY
|
127
135
|
|
128
136
|
# === Basic dimension Q
|
129
137
|
|
@@ -274,6 +282,9 @@ module SY
|
|
274
282
|
# Common constant
|
275
283
|
SPEED_OF_LIGHT = 299_792_458 * METRE / SECOND
|
276
284
|
|
285
|
+
# Supplementary unit of length.
|
286
|
+
LIGHTYEAR = Unit.of Length, short: "ly", amount: 9_460_730_472_580_800 * METRE
|
287
|
+
|
277
288
|
# Similar for SY::Acceleration:
|
278
289
|
Acceleration = ( Speed / Time ).standard!
|
279
290
|
|
data/lib/sy/version.rb
CHANGED