Documentation
¶
Index ¶
- Variables
- func CheckParseTime(s string) []int
- func GetCurrentDateTimeByStr(format string) string
- func GetFormatDate(strDate string, format string, addWeek bool) string
- func GetFormatTime(strTime string, format string) string
- func GetFormatTime2(hour, min, sec, nsec int) time.Time
- func ParseTime(str string) (t time.Time, err error)
- func ParseTimeForLastModified(lastModified string) (time.Time, error)
- func ParseTimeForRss(str string) (time.Time, error)
- func Timeout()
- func Track(start time.Time, name string)
Constants ¶
This section is empty.
Variables ¶
View Source
var JapaneseWeedDays = []string{"日", "月", "火", "水", "木", "金", "土"}
JapaneseWeedDays is day of week
View Source
var TimeLayouts = []string{ "Mon, _2 Jan 2006 15:04:05 MST", "Mon, _2 Jan 2006 15:04:05 -0700", time.ANSIC, time.UnixDate, time.RubyDate, time.RFC822, time.RFC822Z, time.RFC850, time.RFC1123, time.RFC1123Z, time.RFC3339, time.RFC3339Nano, }
TimeLayouts is time layouts
Functions ¶
func CheckParseTime ¶
CheckParseTime is to return accessible format
func GetCurrentDateTimeByStr ¶
GetCurrentDateTimeByStr is to get current time by string
func GetFormatDate ¶
GetFormatDate is to get format date
func GetFormatTime ¶
GetFormatTime is to format time
func GetFormatTime2 ¶
GetFormatTime2 is to format time
func ParseTimeForLastModified ¶
ParseTimeForLastModified is to parse time for LastModified
func ParseTimeForRss ¶
ParseTimeForRss is to parse time for RSS
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.