Documentation
¶
Index ¶
- func CountDaysOfAMonth(yearAndMonth string) (int, error)
- func DateTime2TimeStamp(format string, datetime string) int64
- func DateTimeToTimeStamp(datetime string) int64
- func FormatPastTime(pastTimeStamp int64) (int, string, string)
- func IsLeap(year int) bool
- func IsLeapYear(year int) bool
- func TimeStampToDatatime(timeStamp int64) string
- func TimeStampToDatatimeFormat(timeStamp int64, format string) string
- func TimeStampToDatatimeSlice(timeStamp int64) []string
- type DateTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountDaysOfAMonth ¶
Count Days Of A Month
func DateTime2TimeStamp ¶
func FormatPastTime ¶
Calculate past time
func TimeStampToDatatimeFormat ¶
Time stamp to date time and format
func TimeStampToDatatimeSlice ¶
Time stamp to slice [] string
Types ¶
type DateTime ¶
type DateTime struct {
Year int
YearString string
Month int
MonthString string
Day int
DayString string
Hour int
HourString string
Minute int
MinuteString string
Second int
SecondString string
TimeStamp int64
Format string
Result string
Time time.Time
}
func (*DateTime) InitFromDatatime ¶
func (*DateTime) InitFromTimeStamp ¶
Click to show internal directories.
Click to hide internal directories.