Documentation
¶
Index ¶
- Constants
- Variables
- func FormatSubTime(t string) string
- func String2Time(s string, tmFmt string) (time.Time, error)
- func String2TimeD(s string) (time.Time, error)
- func String2TimeS(s string) (time.Time, error)
- func SubMinuteByString(t string) (float64, error)
- func SubMinuteByTime(t time.Time) float64
Constants ¶
View Source
const ( TmFmtWithMS1 = "2006-01-02 15:04:05.000" TmFmtWithMS2 = "2006/01/02 15:04:05.000" TmFmtWithS1 = "2006-01-02 15:04:05" TmFmtWithS2 = "2006/01/02 15:04:05" TmFmtWithD1 = "2006-01-02" TmFmtWithD2 = "2006/01/02" )
Variables ¶
View Source
var (
Locate, _ = time.LoadLocation("Asia/Shanghai")
)
Functions ¶
func FormatSubTime ¶
func SubMinuteByString ¶
func SubMinuteByTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.