Documentation
¶
Index ¶
- type LocalTime
- func (t *LocalTime) DateTimeToStamp(data string) int64
- func (t LocalTime) FormatDateString(MyDateString string) string
- func (t LocalTime) FormatString(Format string) string
- func (t LocalTime) MarshalJSON() []byte
- func (t *LocalTime) Scan(v interface{}) error
- func (t LocalTime) SpecifiedDate(year, month, day int) string
- func (t LocalTime) SpecifiedTimeForDayAfter(LastTime string) string
- func (t LocalTime) SpecifiedTimeForDayBefore(LastTime string) string
- func (t LocalTime) String() string
- func (t LocalTime) Value() driver.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalTime ¶
func (*LocalTime) DateTimeToStamp ¶
DateTimeToStamp 任意日期格式转换成 时间戳
func (LocalTime) FormatDateString ¶
FormatDateString 将指定格式的日期,转成 YYYY-MM-DD HH:ii:ss
func (LocalTime) FormatString ¶
FormatString 当前时间转换成日期格式
func (LocalTime) SpecifiedDate ¶
SpecifiedDate 获取指定 年、月、日
func (LocalTime) SpecifiedTimeForDayAfter ¶
SpecifiedTimeForDayAfter 获取指定日期的后一天
func (LocalTime) SpecifiedTimeForDayBefore ¶
SpecifiedTimeForDayBefore 获取指定日期的前一天
Click to show internal directories.
Click to hide internal directories.