Skip to content

BBNoodle/xtdate-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

一个迭代时间处理工具

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages