Time conversion between local civil time (LCT), coordinated universal time (UTC), Greenwich sidereal time (GST) and local sidereal time (LST) were confusing. They were made out of utility functions with a blurry public API due to a mix of exposure and refactoring.
This introduces GreenwichSiderealTime and LocalSiderealTime, objects that can hold information about time related to the sidereal time.
With a clear public API, it makes it easier to convert times and understand what is manipulated.
Time conversion between local civil time (LCT), coordinated universal time (UTC), Greenwich sidereal time (GST) and local sidereal time (LST) were confusing. They were made out of utility functions with a blurry public API due to a mix of exposure and refactoring.
This introduces
GreenwichSiderealTime
andLocalSiderealTime
, objects that can hold information about time related to the sidereal time.With a clear public API, it makes it easier to convert times and understand what is manipulated.