将给定日期转换为儒略日期 [英] Convert given date to Julian date

查看:260
本文介绍了将给定日期转换为儒略日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何将给定日期转换为朱利安日期

mm:DD:YYYY

字符串sGivenDate ="07302010";

谢谢
Chaegie



how to convert given date to julian date

mm:DD:YYYY

string sGivenDate = "07302010";

Thanks
Chaegie

推荐答案

你的意思是朱利安·伊达斯(Julian Dates)?
您想将美国日期格式转换为儒略历吗?

(请记住,朱利安日期始终是dd/mm/yy,因为当时美国并不存在)

首先,请问您需要为哪个国家/地区提供产品,因为朱利安历法可能会因地区而异.
例如,它于1582年2月24日在梵蒂冈首次被丢弃,但西班牙和葡萄牙将其保留到当年10月4日.
丹麦和挪威一直将其保留到1700年3月1日,英国直到1752年9月2日才将其清除,导致骚乱,因为人们认为损失了11天!
无论如何,一旦确定了哪个国家/地区,请减去该日期并放下11天(确保结果仍在该国家/地区的儒略时代内,如果是格里高利安,就不要放11天)并转换从MM/DD/YY到DD/MM/YY,您将拥有儒略历.

您在那做的工作真的很艰辛.

我认为从朱利安历来采用格里高利历历历时将近200年,有超过50个采用日期和撤销日期.
You really mean Julian Dates???

You want to convert a US Date format into the Julian Calendar?

(Remembering that Julian Dates were always dd/mm/yy as the US didn''t exists back then)

Firstly, ask which country you need it to be supplied for, for the Julian calendar was subject to regional variations.
eg it was dropped firstly in the Vatican on 24th February 1582, but Spain and Portugal kept it until 4th October that year.
Denmark and Norway kept it until 1st March 1700, and the UK did not get rid of it until 2nd September 1752, causing riots as people thought they had lost 11 days!

Any way, once you have worked out which country, take the date and drop 11 days off it,(ensuring the result is still within the Julian Era for that country, if it is Gregorian, do not take the 11 days off) and convert from MM/DD/YY to DD/MM/YY and you will have the Julian Calendar.

It is a REALLY hard job you are doing there.

I think in all the adoption of Gregorian Calendar from Julian took nearly 200 years and there were over 50 adoption dates and reversals.


如果您用google/bing/yahoo进行 c#转换日期到朱利安日期,您会发现很多有用的链接.其中大多数都有代码.
If you google/bing/yahoo for c# convert date to julian date you will find lots and lots of useful links. Most of them have code.


您想要哪个日期: http://en.wikipedia .org/wiki/Julian_day [ ^ ]
无论如何,计算起来应该很简单.
Which date do you want : http://en.wikipedia.org/wiki/Julian_day[^]
Anyway, it should be straightforward to calculate it.


这篇关于将给定日期转换为儒略日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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