gtbox_time

package
v0.1.60 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package gtbox_time 时间相关工具

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GTDateEqualYearMoonDay

func GTDateEqualYearMoonDay(date1, date2 time.Time) bool

func GTDateEqualYearMoonDayHours

func GTDateEqualYearMoonDayHours(date1, date2 time.Time) bool

func GTDateGetNowYearMoonDay

func GTDateGetNowYearMoonDay() string

GTDateGetNowYearMoonDay 获取当前年月日字符串 时间格式为"2006-01-02"

func GTDateGetYearMoonDayFromTime

func GTDateGetYearMoonDayFromTime(aTime time.Time) string

GTDateGetYearMoonDayFromTime 获取当前年月日字符串 时间格式为"2006-01-02"

func GTGetTodayCustomHoursAndMinuteWithBeijing

func GTGetTodayCustomHoursAndMinuteWithBeijing(aHours int, aMinute int) time.Time

GTGetTodayCustomHoursAndMinuteWithBeijing 获取北京时间今天指定的小时、分钟

func GTToolsTimeGetCurrentTimeWithUTC added in v0.0.51

func GTToolsTimeGetCurrentTimeWithUTC() time.Time

GTToolsTimeGetCurrentTimeWithUTC 时间字符串 转 UTC时间

func GTToolsTimeStringCovertToUTCTime

func GTToolsTimeStringCovertToUTCTime(timeString string) time.Time

GTToolsTimeStringCovertToUTCTime 时间字符串 转 UTC时间

func GTToolsTimeUTCCovertToBeijing

func GTToolsTimeUTCCovertToBeijing(inTime time.Time) time.Time

GTToolsTimeUTCCovertToBeijing UTC时间 转 北京时间

func GTToolsTimesGetBeijingTime

func GTToolsTimesGetBeijingTime() time.Time

GTToolsTimesGetBeijingTime 普通时间 转 北京时间

func GTToolsTimestampCovertToBeijing

func GTToolsTimestampCovertToBeijing(timestamp float64) time.Time

GTToolsTimestampCovertToBeijing 通过时间戳获取北京时间支持10位、13位时间戳

func GTToolsTimestampCovertToUTC added in v0.1.59

func GTToolsTimestampCovertToUTC(timestamp float64) time.Time

GTToolsTimestampCovertToUTC 通过时间戳获取 UTC 时间支持10位、13位时间戳

Types

This section is empty.

Jump to

Keyboard shortcuts

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