Documentation
¶
Index ¶
- func Add(date time.Time, iT ...int) time.Time
- func AddDay(date time.Time, iCount int) time.Time
- func AddHour(date time.Time, iCount int) time.Time
- func AddMinute(date time.Time, iCount int) time.Time
- func AddMonth(date time.Time, iCount int) time.Time
- func AddYear(date time.Time, iCount int) time.Time
- func Current(formatStr ...string) string
- func Format(date time.Time, formatStr string) string
- func GapDay(t1, t2 interface{}) (day int)
- func GapHour(t1, t2 interface{}) (hour int)
- func GapMinute(t1, t2 interface{}) (hour int)
- func GapMonth(t1, t2 interface{}) (month int)
- func GapYear(t1, t2 interface{}) (year int)
- func IsTime(str string) bool
- func MilliSecond() int64
- func NanoSecond() int64
- func Second() int64
- func ToDate(str string) time.Time
- func Today(formatStr ...string) string
- func TodayEd() string
- func TodaySt() string
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
* * 获取指定分钟后的时间 * @param date 起始时间 * @param iT 时间参数,分别是年、月、日、时、分、秒 * @return
func AddDay ¶
* * 获取指定天数后的时间 * @param date 起始时间 * @param iCount 天数 * @return
func AddHour ¶
* * 获取指定小时后的时间 * @param date 起始时间 * @param iCount 小时数 * @return
func AddMinute ¶
* * 获取指定分钟后的时间 * @param date 起始时间 * @param iCount 分数 * @return
func AddMonth ¶
* * 获取指定月后的时间 * @param date 起始时间 * @param iCount 月数 * @return
func AddYear ¶
* * 获取指定年后的时间 * @param date 起始时间 * @param iCount 年数 * @return
Types ¶
Click to show internal directories.
Click to hide internal directories.