This is a tool for processing time.
It is possible to install the tool with pip:
pip install xt-TimeUtils
Time processing module based on datetime
and arrow
The script itself is currently configuration free.
- arrow
- datetime
Sample usage:
from xtdate_utils.xtdate_utils import TimeUtils
str_to_datetime = TimeUtils.str_to_datetime('2021-01-01', '%Y-%m-%d')
Version 0.1.3
- Add two new interfaces(
get_after_day
,get_before_day
)
Version 0.1.4
- Fix the error of importerror
Version 0.2.0 2021-02-24
- Fix the error of 'get_last_cycle_list' interface
- Interface 'get_last_cycle_list' add configuration item
is_process
, It is used to control the time period. The default time period is the(week + 1)
parameter.
Version 0.2.1 2021-04-06
- Initial version
- Add
IterCycleGear
Class, it supports cycle configurable. Three configuration options have been added:day
、week
、iter
. - Add
update_iteration_period
to update_iteration_period
parameter.
The script is released under the MIT License.The MIT License is registered with and approved by the Open Source Initiative.