如何将度,分和秒转换为日期时间? [英] How to Convert Degrees, Mins, and Sec to Datetime?

查看:160
本文介绍了如何将度,分和秒转换为日期时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在将度,分和秒转换为纬度/经度的函数?

Is there a preexisting function converting Degrees, Mins, and Sec to Lat/Lon?

如果是的话,您能指点我一下,还是可以帮忙下面的功能?

If so, could you point me to, or help with the function below?

公开DatetimeConvertToDatetime(双度,双分钟,双秒)

Public DatetimeConvertToDatetime(double degrees, double minutes, double second)

{

    //返回日期时间;

     //return datetime;

}

pianoboyCoder

pianoboyCoder

推荐答案

我不明白这个问题.

I do not understand the question.

度/分/秒是纬度或经度的单位.

Degrees/mins/seconds are a unit of Latitude or Longitude.

日期时间是日期时间.

这就像问如何将米转换为一周中的一天!

Its like asking how to convert meters into a day of the week!

您的意思是,如何找到给定纬度/经度所属的时区?

Do you mean, how to find the timezone that a given latitude/longitude falls into?


这篇关于如何将度,分和秒转换为日期时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆