Ebrahim Byagowi
a17456514e
kotlin: Use Kotlin test and its asserters
...
It provides more idiomatic asserters to Kotlin.
2022-03-22 19:30:41 +04:30
Don Cross
8fd8d7b624
Kotlin AstroTime: millisecond resolution, ISO 8601
...
Allow floating point values for seconds when initializing
an AstroTime from (year, month, ..., seconds).
AstroTime can now represent date/time to millisecond resolution.
Represent AstroTime strings in ISO 8601 format:
yyyy-mm-ddThh:mm:ss.sssZ
Minor docstring fixes.
Rename target file to 'astronomy.kt'.
2022-03-21 13:28:49 -04:00
Ebrahim Byagowi
f8771922d3
kotlin: Drop .0 where isn't needed
2022-03-21 15:25:29 +03:30
Ebrahim Byagowi
c9f4ce46e7
kotlin: Replace repetitive ifs with when
2022-03-21 15:21:47 +03:30
Ebrahim Byagowi
46e3088dd0
kotlin: Port TerseVector
2022-03-21 14:31:26 +03:30
Ebrahim Byagowi
88b2a38651
kotlin: Move AstroTime primary constructor to top level
...
This is more idiomatic Kotlin.
2022-03-21 14:11:04 +03:30
Ebrahim Byagowi
a4fc126a08
kotlin: Implement AstroTime.addDays
2022-03-21 13:55:18 +03:30
Ebrahim Byagowi
adf7b7a991
kotlin: Implement AstroTime toString
2022-03-21 13:48:06 +03:30
Ebrahim Byagowi
60e470b9c3
kotlin: Implement AstroTime.fromTerrestrialTime
2022-03-21 12:50:25 +03:30
Ebrahim Byagowi
e786e8af65
kotlin: Port other AstroTime constructors
2022-03-21 12:36:50 +03:30
Ebrahim Byagowi
6839240b18
kotlin: Use object instead explicit instancing
2022-03-21 11:42:48 +03:30
Ebrahim Byagowi
cd1617e47f
kotlin: Minor style fixes
...
* Drop unnecessary semicolons
* Turn var to val where possible
2022-03-21 11:41:52 +03:30
Don Cross
2d0abac818
Reformatted Kotlin source code.
2022-03-20 20:59:01 -04:00
Don Cross
8093ceff2a
Kotlin: started class AstroTime, delta-t calc.
2022-03-20 20:54:33 -04:00
Don Cross
0f0fab513a
Kotlin: implemented Body enum with code docs.
...
Implemented the Body enum, with documentation strings
in comments. Reworked the Gradle build to generate
GitHub Flavored Markdown (gfm) instead of html.
2022-03-18 20:10:51 -04:00
Ebrahim Byagowi
01a0a89109
Add Kotlin project structure
2022-03-15 21:37:42 +03:30