SolarTimeUtil class

太阳时计算工具类

Constructors

SolarTimeUtil.new({double longitude = 120.0, double latitude = 35.0})
构造函数

Properties

hashCode int
The hash code for this object.
no setterinherited
lat double
北纬为正,南纬为负
final
lng double
统一东经为正
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMeanSolarTime(SolarTime solartime) SolarTime
计算平太阳时 @param solartime 公历时间 @returns 平太阳时的公历时间 SolarTime
getRealSolarTime(SolarTime solartime) SolarTime
计算真太阳时 @param solartime 公历时间 @returns 真太阳时的公历时间 SolarTime
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

initLocation({double longitude = 120.0, double latitude = 35.0}) SolarTimeUtil
创建太阳时工具实例 @param lng 经度 -180180 @param lat 纬度 -9090