根據經緯度計算時區

給定經緯度,返回時區編號: /** * 根據經度獲取時區 * @param currentLon * @return */ public static int caculateTimeZone(double currentLon) { int timeZone ; int shangValue = (int)(currentLon / 15);
相關文章
相關標籤/搜索