package
0.0.0-20241208091326-048c503270fe
Repository: https://github.com/php-cowboy/web.git
Documentation: pkg.go.dev

# Functions

这个方法有特殊用途,不建议修改或使用 dateStr == "" 时的返回不是很合理,但符合使用场景的业务逻辑.
获取当前时间还有多少秒到下一天.
计算两个日期之间差多少天.
格式化为一天最大时间格式.
格式化为一天最小时间格式.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
日期格式的字符串转当天 23:59:59 的日期时间格式字符串 例如 2020-10-26 转 2020-10-26 23:59:59 dateTimeSting 时间 formFormat 时间格式 toFormat 目标格式.
日期格式的字符串转当天 00:00:00 的日期时间格式字符串 例如 2020-10-26 转 2020-10-26 00:00:00 dateTimeSting 时间 formFormat 时间格式 toFormat 目标格式.
No description provided by the author
获取当前时间前后时间段时间.
获取传入的时间所在月份的第一天,即某月第一天的0点。如传入time.Now(), 返回当前月份的第一天0点时间。.
获取传入的时间所在月份的最后一天,即某月最后一天的0点。如传入time.Now(), 返回当前月份的最后一天0点时间。.
获取某一天的最后一秒时间.
获取当前日期前后 days 天 日期.
获取当前日期前后 days 天 日期.
获取当前日期前后 days 天 months月 years年 日期.
获取某一天的0点时间.
时间字符串转换为时间戳 timeStr 时间字符串 timeStringFormat 时间字符串的格式 不传递默认使用 2006-01-02 15:04:05.
将字符串时间转换成当天的结束时间 时间格式为 DateFormat.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author