Documentation
¶
Index ¶
- func ConvertToUnix(t time.Time) int64
- func CreateDirectoryIfNotExists(dirPath string) error
- func CreateFileIfNotExists(filePath string)
- func GetConfigFilePath() string
- func GetCurrentDate() time.Time
- func GetDateCeil(t time.Time) time.Time
- func GetDateFloor(t time.Time) time.Time
- func GetHumanDate(t time.Time) string
- func GetMonthLongName(month time.Month) string
- func GetNPrevWorkingDays(start time.Time, n int) []time.Time
- func GetStorageDir(ts time.Time) string
- func GetTimeFromUnix(ts int64) time.Time
- func GetUUID() string
- func GetWorktrackDir() string
- func GetYesterdayDate() time.Time
- func IsNumber(num string) (int, bool)
- func IsThisMonth(t time.Time) bool
- func IsThisWeek(t time.Time) bool
- func IsThisYear(t time.Time) bool
- func IsToday(t time.Time) bool
- func NumberIsInRange(n int, min, max int) bool
- func ParseDate(date string) (time.Time, error)
- func RemoveWhiteSpaces(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToUnix ¶
func CreateFileIfNotExists ¶
func CreateFileIfNotExists(filePath string)
func GetConfigFilePath ¶
func GetConfigFilePath() string
func GetCurrentDate ¶
func GetHumanDate ¶
func GetMonthLongName ¶
func GetNPrevWorkingDays ¶
Returns the next n working days from the given date (including the given date)
func GetStorageDir ¶
func GetTimeFromUnix ¶
func GetWorktrackDir ¶
func GetWorktrackDir() string
func GetYesterdayDate ¶
func IsThisMonth ¶
func IsThisWeek ¶
func IsThisYear ¶
func NumberIsInRange ¶
func RemoveWhiteSpaces ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.