Documentation ¶
Index ¶
- Variables
- type TDate
- func (td *TDate) AgeOfIDCard(num string) int
- func (td *TDate) Format(date time.Time, format string) (string, error)
- func (td *TDate) GetChineseZodiac(year int) string
- func (td *TDate) GetZodiac(month, day int) string
- func (td *TDate) Offset(date time.Time, format string) (time.Time, error)
- func (td *TDate) OffsetDay(date time.Time, day int) (time.Time, error)
- func (td *TDate) OffsetHour(date time.Time, hour int) (time.Time, error)
- func (td *TDate) OffsetMillisecond(date time.Time, ms int) (time.Time, error)
- func (td *TDate) OffsetMinute(date time.Time, minute int) (time.Time, error)
- func (td *TDate) OffsetSecond(date time.Time, second int) (time.Time, error)
- func (td *TDate) Parse(dateStr, format string) (time.Time, error)
- func (td *TDate) SubDays(date1, date2 time.Time) int
- func (td *TDate) SubHours(date1, date2 time.Time) int
- func (td *TDate) SubMilliseconds(date1, date2 time.Time) int
- func (td *TDate) SubMinutes(date1, date2 time.Time) int
- func (td *TDate) SubSeconds(date1, date2 time.Time) int
- type TFile
- func (tf *TFile) AppendString(content string, path string) (*os.File, error)
- func (tf *TFile) Gzip(dest string, paths ...string) error
- func (tf *TFile) IsDirExists(dirname string) bool
- func (tf *TFile) IsFileExists(path string) bool
- func (tf *TFile) RemovePrefix(path string) string
- func (tf *TFile) RemoveSuffix(path string) string
- func (tf *TFile) UnGzip(src, dest string) error
- func (tf *TFile) Unzip(src string, dest string) error
- func (tf *TFile) Zip(dest string, paths ...string) error
- type TString
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DateUtils TDate FileUtils TFile StringUtils TString )
Functions ¶
This section is empty.
Types ¶
type TDate ¶
type TDate byte
func (*TDate) GetChineseZodiac ¶
GetChineseZodiac 根据生日计算生肖
func (*TDate) OffsetHour ¶
OffsetHour 按小时偏移
func (*TDate) OffsetMillisecond ¶
OffsetMillisecond 按毫秒偏移
func (*TDate) OffsetMinute ¶
OffsetMinute 按分钟偏移
func (*TDate) OffsetSecond ¶
OffsetSecond 按秒偏移
func (*TDate) SubMilliseconds ¶
SubMilliseconds 毫秒差
type TString ¶
type TString byte
func (*TString) IsBlankOrEmpty ¶
IsBlankOrEmpty 是否空白或空字符串.
func (*TString) IsNotBlank ¶
IsNotBlank 是否非空(非空白)字符串.
func (*TString) IsNotBlankOrEmpty ¶
IsNotBlankOrEmpty 是否非空白或非空字符串.
Click to show internal directories.
Click to hide internal directories.