SolarTimeCalculator class
真太阳时计算工具类
真太阳时是基于太阳在特定地点的实际位置来测量的时间。 当太阳恰好经过观测点的子午线(正南或正北方向)时,真太阳时是12:00(正午)。
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
calculateHourAngle(
DateTime trueSolarTime) → double - 计算太阳时角(单位:度) 时角是指太阳与观测点子午线的夹角,正午为0度
-
calculateTrueSolarTime(
DateTime dateTime, double longitude, double timeZoneOffset) → DateTime -
计算真太阳时
dateTime
- 需要计算的日期时间(本地时间)longitude
- 观测点经度,单位为度(东经为正,西经为负)timeZoneOffset
- 时区偏移(小时) -
formatTrueSolarTime(
DateTime trueSolarTime) → String - 格式化真太阳时为字符串