funTime

package
v0.0.0-...-ed2e16d Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FORMAT_DATE = "2006-01-02"
View Source
var FORMAT_DATETIME string = "2006-01-02 15:04:05"

Functions

func Checkdata

func Checkdata(m int, d int, y int) bool

func Date

func Date(timestamp int64) string

dateTimeFormat 格式如:"2006-01-02 15:04:05"

func Date_after

func Date_after(seconds int64, timestamp int64) string

多少秒后

func Date_before

func Date_before(seconds int64, timestamp int64) string

多少秒前

func Date_daysafter

func Date_daysafter(days int64, timestamp int64) string

多少天后

func Date_daysbefore

func Date_daysbefore(days int64, timestamp int64) string

多少天前

func Date_hoursafter

func Date_hoursafter(hours int64, timestamp int64) string

多少小时后

func Date_hoursbefore

func Date_hoursbefore(hours int64, timestamp int64) string

多少小时前

func Date_minutesafter

func Date_minutesafter(minutes int64, timestamp int64) string

多少分钟后

func Date_minutesbefore

func Date_minutesbefore(minutes int64, timestamp int64) string

多少分钟前

func Date_now

func Date_now() string

当前日期

func Date_today

func Date_today() string

当前日期

func Date_tomorrow

func Date_tomorrow() string

明天日期

func Datetime

func Datetime(timestamp int64) string

dateTimeFormat 格式如:"2006-01-02 15:04:05"

func Datetime_after

func Datetime_after(seconds int64, timestamp int64) string

多少秒后

func Datetime_before

func Datetime_before(seconds int64, timestamp int64) string

多少秒前

func Datetime_daysafter

func Datetime_daysafter(days int64, timestamp int64) string

多少天后

func Datetime_daysbefore

func Datetime_daysbefore(days int64, timestamp int64) string

多少天前

func Datetime_hoursafter

func Datetime_hoursafter(hours int64, timestamp int64) string

多少小时后

func Datetime_hoursbefore

func Datetime_hoursbefore(hours int64, timestamp int64) string

多少小时前

func Datetime_minutesafter

func Datetime_minutesafter(minutes int64, timestamp int64) string

多少分钟后

func Datetime_minutesbefore

func Datetime_minutesbefore(minutes int64, timestamp int64) string

多少分钟前

func Datetime_now

func Datetime_now() string

当前日期时间

func Datetime_today

func Datetime_today() string

当前日期时间

func Datetime_tomorrow

func Datetime_tomorrow() string

明天时间

func Strtotime

func Strtotime(strtime interface{}) int64

例如:2019-01-31 00:00:00

func Strtotime_Date

func Strtotime_Date(strtime interface{}) int64

例如:2019-01-31

func Strtotime_DateTime

func Strtotime_DateTime(strtime interface{}) int64

例如:2019-01-31 00:00:00

func Time

func Time() int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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