不能选择年份BC [英] Cannot select years BC

查看:189
本文介绍了不能选择年份BC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个需要处理BC(例如100BC或2000BC)以及2014AC等的项目。

I'm working on a project that need to handle dates BC (eg 100BC, or 2000BC) as well as 2014AC etc..

API 的Datepicker文档,据说 minDate maxDate 可以使用javascript Date 对象(具有最小和最大的aprox 285,616 年在1970年的任何一方)。

In the API documentation of Datepicker, it is stated that minDate and maxDate can be set using javascript Date object (with has min and max of aprox 285,616 years on either side of 1970).

它似乎是不可能在卑诗省,甚至在1/1/99之前设置几年。

It seems to be impossible to set years in BC or even before 1/1/99.

$("#date").datepicker({
    dateFormat: 'dd-mm-yy',
    showButtonPanel: true,
    changeMonth: true,
    changeYear: true,
    yearRange: '0:2010',
    inline: true });

我如何超越这个限制?

推荐答案

你将无法使用BC与我们目前的日历无论如何,因为他们使用朱利安历。尝试将我们的日期转换为朱利安,看看它是否有效。

You wouldn't be able to use B.C. with our current calendars anyway because they used the Julian calendar. Try converting our dates to Julian and see if it works.

这篇关于不能选择年份BC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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