Skip to main content

This is a Time calculation module

Project description

#--coding:utf-8-- 时间字符串按照本身格式转为时间戳strToTimeStamp(timeStr, timeFmt):

时间戳转为一定格式的时间字符串timeStampToStr(timeStamp, timeFmt):

计算两个时间字符串之间的差值,可以按照秒(s)、分(m)、小时(h)返回,默认返回秒timeMinusStr(start_time_str, end_time_str, time_fmt, timeType):

计算两个时间戳之间的差值,可以按照秒(s)、分(m)、小时(h)返回,默认返回秒timeMinusStamp(start_time, end_time, timeType):

将时间戳转为世界时间字符串timeStrToUTCStr(time_str, timeFmt):

时间字符串添加分钟和小时后返回时间字符串strTimeAddMinHour(str_p, mins, hours):

时间字符串添加分钟和小时后返回时间字符串strTimeAddMinHourByFmt(str_p, mins, hours, fmt):

获取两个时间字符串之间,所有的日期getDatesByTimes(sDateStr, eDateStr):

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cytimeutil-1.0.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

cytimeutil-1.0.1-py3.8.egg (4.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page