Documentation
¶
Index ¶
- func AsString(src interface{}) string
- func BuildDir(absDir string) error
- func CheckFileIsExist(filename string) bool
- func CheckParam(params ...string) bool
- func DeleteFile(absDir string) error
- func FormatTime(tm time.Time, forStr string) string
- func GetCurrentDirectory() string
- func GetDay0(timestamp int64) time.Time
- func GetDayStr(tm time.Time) string
- func GetHour(timestamp int64) int
- func GetHour0(timestamp int64) time.Time
- func GetLastDayCurrentTime(timestamp int64, offset int) time.Time
- func GetLocalSystemLang(isSimple bool) (locale string)
- func GetLocalTime(tm time.Time) time.Time
- func GetModelPath() string
- func GetMonth0(timestamp int64) time.Time
- func GetPathDirs(absDir string) (re []string)
- func GetPathFiles(absDir string) (re []string)
- func GetSysTimeLayout() string
- func GetTimeStr(tm time.Time) string
- func GetTimeWeek(timestamp int64) int
- func GetUtcDay0(now time.Time, timeZone *time.Location) int64
- func GetUtcTime(tm time.Time) int64
- func GetUtcWeek0(timestamp int64) int64
- func GetWeek0(timestamp int64) time.Time
- func Getenv(key string) string
- func IsIDCard(cardNo string) bool
- func IsInternalType(t string) bool
- func IsKeywords(t string) bool
- func IsMail(username string) (isMail bool)
- func IsPhone(mobileNum string) bool
- func IsRunTesting() bool
- func ReadFile(fname string) (src []string)
- func SaveToFile(fname string, src []string, isClear bool) bool
- func StrToTime(tStr, format string, timeZone *time.Location) time.Time
- func StringTimetoUnix(timestr string) int64
- func TimerByHour(f func())
- func UnixToTime(timestamp int64) time.Time
- func WriteFile(fname string, src []string, isClear bool) bool
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastDayCurrentTime ¶
GetLastDayCurrentTime 获取offset天的现在时间:注意时区
func GetLocalSystemLang ¶
GetLocalSystemLang 获取本地语言 (like:zh_CN.UTF-8)(simple:zh)
func GetUtcDay0 ¶
GetUtcDay0 获取offset 0点时间
func StringTimetoUnix ¶
StringTimetoUnix 给定字符串时间转换成本地时间戳
Types ¶
Click to show internal directories.
Click to hide internal directories.