timeutils

package
v1.3.24 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterDate

func AfterDate(day int) string

AfterDate 获取 day 天之后的日期

func AfterTime

func AfterTime(day int) string

AfterTime 获取 day 天之后的时间

func BeforeDate

func BeforeDate(day int) string

BeforeDate 获取 day 天之前的日期

func BeforeTime

func BeforeTime(day int) string

BeforeTime 获取 day 天之前的时间

func Date

func Date(format ...string) string

Date 获取当前日期 format 指定时间格式,默认时间格式为 2006-01-02

func DateTime

func DateTime(format ...string) string

DateTime 获取当前时间 format 指定时间格式,默认的时间格式为 2006-01-02 03:04:05

func Time

func Time(v string, format ...string) time.Time

Time 解析时间字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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