xt-TimeUtils

A Tool For Processing Iteration Time


License
MIT
Install
pip install xt-TimeUtils==0.2.2

Documentation

This is a tool for processing time.

Installation

It is possible to install the tool with pip:

pip install xt-TimeUtils

Feature

Time processing module based on datetime and arrow

Configuration

The script itself is currently configuration free.

Dependencies

  • arrow
  • datetime

Usage

Sample usage:

from xtdate_utils.xtdate_utils import TimeUtils

str_to_datetime = TimeUtils.str_to_datetime('2021-01-01', '%Y-%m-%d')

Changes

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: dayweekiter.
  • Add update_iteration_period to update _iteration_period parameter.

License

The script is released under the MIT License.The MIT License is registered with and approved by the Open Source Initiative.