gjdatac-api 0.0.9__tar.gz → 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/PKG-INFO +2 -2
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api/data_api_class.py +4 -4
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api.egg-info/PKG-INFO +2 -2
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/setup.py +2 -2
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api/__init__.py +0 -0
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api/dict_data.py +0 -0
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api/dolphin_db_info.py +0 -0
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api.egg-info/SOURCES.txt +0 -0
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api.egg-info/dependency_links.txt +0 -0
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api.egg-info/requires.txt +0 -0
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/gjdatac_api.egg-info/top_level.txt +0 -0
- {gjdatac_api-0.0.9 → gjdatac_api-0.1.0}/setup.cfg +0 -0
|
@@ -558,15 +558,15 @@ class GJDataC:
|
|
|
558
558
|
|
|
559
559
|
@staticmethod
|
|
560
560
|
def get_price_format_date(date_str):
|
|
561
|
-
"""将日期字符串格式化为 'YYYY.MM.DD' 格式。
|
|
561
|
+
"""将日期字符串格式化为 'YYYY.MM.DD HH:mm:ss' 格式。
|
|
562
562
|
: params date_str: 日期字符串,例如 '2018-01-04 09:01:00'。
|
|
563
563
|
: return :
|
|
564
|
-
格式化后的日期字符串,例如 '2018.01.04'。
|
|
564
|
+
格式化后的日期字符串,例如 '2018.01.04 09:01:00'。
|
|
565
565
|
"""
|
|
566
566
|
if isinstance(date_str, str):
|
|
567
567
|
date_obj = datetime.datetime.strptime(date_str, '%Y-%m-%d %H:%M:%S')
|
|
568
|
-
return date_obj.strftime('%Y.%m.%d')
|
|
569
|
-
return date_str.strftime('%Y.%m.%d')
|
|
568
|
+
return date_obj.strftime('%Y.%m.%d %H:%M:%S')
|
|
569
|
+
return date_str.strftime('%Y.%m.%d %H:%M:%S')
|
|
570
570
|
|
|
571
571
|
@staticmethod
|
|
572
572
|
def _get_price_get_data_todf(data):
|
|
@@ -5,8 +5,8 @@ with open('description_info.md', 'r', encoding='utf-8') as f:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name='gjdatac_api', # 你的包名
|
|
8
|
-
version='0.0
|
|
9
|
-
description='
|
|
8
|
+
version='0.1.0', # 版本号
|
|
9
|
+
description='更新dolphinb时间查询匹配格式', # 包的简要描述
|
|
10
10
|
long_description=long_description, # 包的详细描述
|
|
11
11
|
long_description_content_type='text/markdown', # 描述文件的类型
|
|
12
12
|
include_package_data=True, # 包含包数据
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|