Documentation ¶
Index ¶
- func ApplyFormat(fmtstr string, date time.Time) string
- func CheckDateFormat(adate string, format string) bool
- func CreateDate(adate string, ifmt string, tz string, begindate bool, enddate bool) (time.Time, error)
- func DayInMonth(year int, month int) int
- func DoubleReplace(fmtstr string, keyword string, scanfformat string, data int) string
- func IndexArray(array []string, searchValue string) int
- func SplitDate(ddate string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFormat ¶
ApplyFormat return a string representing the date date formtted by fmtstr Fields recognized : YYYY MM DD hh mm ss
func CheckDateFormat ¶
CheckDateFormat check that format and adate share the same format
func CreateDate ¶
func CreateDate(adate string, ifmt string, tz string, begindate bool, enddate bool) (time.Time, error)
CreateDate returns a time.Time object represented by the parameters adate formatted with ifmt. If enddate is true, the time returned will ...
func DayInMonth ¶
DayInMonth return the number of days in the month/year given in parameters
func DoubleReplace ¶
DoubleReplace replaces keyword by a string representing a scanfformat (like %2d) in the string fmtstr. Finally the scanfformat is expandined to data
func IndexArray ¶
IndexArray search a value in an array of string and returns its index
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.