Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

判斷台灣股市是否開市民國年與西元年日期會有不同的結果 #43

Closed
Hung-Jia-Jun opened this issue Mar 17, 2017 · 1 comment

Comments

@Hung-Jia-Jun
Copy link

我輸入
open_or_not.d_day(datetime(2017, 02, 06)) #西元年 2017/02/06是否開市
True
顯示為有開市

但當我輸入
open_or_not.d_day(datetime(106, 02, 06))#民國年
False
顯示為未開市
原始資料內容
2454聯發科
[u'106/02/06', 10439845.0, 2200855430.0, 208.0, 214.0, 206.0, 212.0, u'+5.00', 5853.0, u'']
有這個天的資料的

@toomore
Copy link
Owner

toomore commented Mar 17, 2017

python 的 datetime 一律都是西元年,可能搞混了。所以輸入 106 對 python datetime 是 西元 106 年。

@toomore toomore closed this as completed Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants