# Functions
AddDay add or sub day to the time.
AddHour add or sub hour to the time.
AddMinute add or sub minute to the time.
AddYear add or sub year to the time.
BeginOfDay return beginning hour time of day.
BeginOfHour return beginning hour time of day.
BeginOfMinute return beginning minute time of day.
BeginOfMonth return beginning of month.
BeginOfWeek return beginning week, default week begin from Sunday.
BeginOfYear return the date time at the begin of year.
BetweenSeconds returns the number of seconds between two times.
DayOfYear returns which day of the year the parameter date `t` is.
EndOfDay return end time of day.
EndOfHour return end hour time of day.
EndOfMinute return end minute time of day.
EndOfMonth return end of month.
EndOfWeek return end week time, default week end with Saturday.
EndOfYear return the date time at the end of year.
FormatStrToTime convert string to time.
FormatTimeToStr convert time to string.
GetNightTimestamp return timestamp of zero hour (timestamp of 23:59).
GetNowDate return format yyyy-mm-dd of current date.
GetNowDateTime return format yyyy-mm-dd hh-mm-ss of current datetime.
GetNowTime return format hh-mm-ss of current time.
GetTodayEndTime return the end time of today, format: yyyy-mm-dd 23:59:59.
GetTodayStartTime return the start time of today, format: yyyy-mm-dd 00:00:00.
GetZeroHourTimestamp return timestamp of zero hour (timestamp of 00:00).
IsLeapYear check if param year is leap year or not.
IsWeekend checks if passed time is weekend or not.
NewFormat return unix timestamp of specified time string, t should be "yyyy-mm-dd hh:mm:ss".
NewISO8601 return unix timestamp of specified iso8601 time string.
NewUnix return unix timestamp of specified time.
NewUnixNow return unix timestamp of current time.
NowDateOrTime return current datetime with specific format and timezone.
Timestamp return current second timestamp.
TimestampMicro return current micro second timestamp.
TimestampMilli return current mill second timestamp.
TimestampNano return current nano second timestamp.
TraceFuncTime: trace the func costed time,just call it at top of the func like `defer TraceFuncTime()()`.