0.0.176
This commit is contained in:
parent
1e48c2cd16
commit
8359d41873
@ -523,6 +523,14 @@ guan.change_directory_by_replacement(current_key_word='code', new_key_word='data
|
||||
|
||||
# Module 14: others
|
||||
|
||||
# time
|
||||
|
||||
# 获取当前日期
|
||||
datetime_date = guan.get_date(bar=True)
|
||||
|
||||
# 获取当前时间
|
||||
datetime_time = guan.get_time()
|
||||
|
||||
# stocks
|
||||
|
||||
# 获取所有股票
|
||||
|
@ -1,7 +1,7 @@
|
||||
[metadata]
|
||||
# replace with your username:
|
||||
name = guan
|
||||
version = 0.0.175
|
||||
version = 0.0.176
|
||||
author = guanjihuan
|
||||
author_email = guanjihuan@163.com
|
||||
description = An open source python package
|
||||
|
@ -1,6 +1,6 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: guan
|
||||
Version: 0.0.175
|
||||
Version: 0.0.176
|
||||
Summary: An open source python package
|
||||
Home-page: https://py.guanjihuan.com
|
||||
Author: guanjihuan
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# With this package, you can calculate band structures, density of states, quantum transport and topological invariant of tight-binding models by invoking the functions you need. Other frequently used functions are also integrated in this package, such as file reading/writing, figure plotting, data processing.
|
||||
|
||||
# The current version is guan-0.0.175, updated on September 05, 2023.
|
||||
# The current version is guan-0.0.176, updated on September 14, 2023.
|
||||
|
||||
# Installation: pip install --upgrade guan
|
||||
|
||||
@ -3096,6 +3096,22 @@ def change_directory_by_replacement(current_key_word='code', new_key_word='data'
|
||||
|
||||
# Module 14: others
|
||||
|
||||
## time
|
||||
|
||||
# 获取当前日期
|
||||
def get_date(bar=True):
|
||||
import datetime
|
||||
datetime_date = str(datetime.date.today())
|
||||
if bar==False:
|
||||
datetime_date = datetime_date.replace('-', '')
|
||||
return datetime_date
|
||||
|
||||
# 获取当前时间
|
||||
def get_time():
|
||||
import datetime
|
||||
datetime_time = datetime.datetime.now().strftime('%H:%M:%S')
|
||||
return datetime_time
|
||||
|
||||
## stocks
|
||||
|
||||
# 获取所有股票
|
||||
|
Loading…
x
Reference in New Issue
Block a user