datetime

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountDaysOfAMonth

func CountDaysOfAMonth(yearAndMonth string) (int, error)

Count Days Of A Month

func DateTimeToTimeStamp

func DateTimeToTimeStamp(datetime string) int64

Date time to time stamp

func FormatPastTime

func FormatPastTime(pastTimeStamp int64) (int, string, string)

Calculate past time

func IsLeapYear

func IsLeapYear(year int) bool

Is Leap Year

func TimeStampToDatatime

func TimeStampToDatatime(timeStamp int64) string

Time stamp to date time

func TimeStampToDatatimeFormat added in v1.3.0

func TimeStampToDatatimeFormat(timeStamp int64, format string) string

Time stamp to date time and format

func TimeStampToDatatimeSlice

func TimeStampToDatatimeSlice(timeStamp int64) []string

Time stamp to slice [] string

Types

This section is empty.

Jump to

Keyboard shortcuts

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