date

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDayTimeSortText

func GetDayTimeSortText(s int64) string

GetDayTimeSortText 转换 -- 09-12 15:33

func GetDayTimeText

func GetDayTimeText(s int64) string

GetDayTimeText 转换 -- 09-12 15:33:04

func GetFirstDateOfMonth

func GetFirstDateOfMonth(d time.Time) time.Time

GetFirstDateOfMonth 获取上个月、上2个月、上3个月|月开始

func GetFirstDateOfWeek

func GetFirstDateOfWeek(d time.Time) time.Time

GetFirstDateOfWeek 上一周 ,前2周,前3周 的周一|周开始

func GetLastDateOfWeek

func GetLastDateOfWeek(d time.Time) time.Time

GetLastDateOfWeek 上一周 ,前2周,前3周 的周日|周结束

func GetMonthDayText

func GetMonthDayText(s int64) string

GetMonthDayText 转换 -- 9-12

func GetSortTimeText

func GetSortTimeText(s int64) string

GetSortTimeText 将时间戳转换成string 短日期

func GetTimeHistoryText

func GetTimeHistoryText(before int64) string

GetTimeHistoryText 将时间戳转换成string 一天前、一个月前....

func GetTimeText

func GetTimeText(s int64) string

GetTimeText 将时间戳转换成string 长日期 2006-01-02 15:04:05

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL