Documentation
¶
Index ¶
- Constants
- type DateTime
- func (dateTime *DateTime) Add(seconds int) *DateTime
- func (datetime *DateTime) AddDate(year int, month int, day int)
- func (dateTime *DateTime) Before(other *DateTime) bool
- func (dateTime *DateTime) Day() int
- func (dateTime *DateTime) DayString() string
- func (dateTime *DateTime) GetTotalDay() int64
- func (dateTime *DateTime) GetTotalSecond() int64
- func (dateTime *DateTime) Hour() int
- func (dateTime *DateTime) HourString() string
- func (datetime *DateTime) Location() *time.Location
- func (dateTime *DateTime) LogString() string
- func (dateTime *DateTime) Minute() int
- func (dateTime *DateTime) MinuteString() string
- func (dateTime *DateTime) Month() time.Month
- func (dateTime *DateTime) MonthString() string
- func (dateTime *DateTime) NormalString() string
- func (dateTime *DateTime) Parse(timestr string, format string)
- func (dateTime *DateTime) Second() int
- func (dateTime *DateTime) SecondString() string
- func (dateTime *DateTime) Sub(other *DateTime) *DateTimeDuration
- func (dateTime *DateTime) Year() int
- func (dateTime *DateTime) YearString() string
- type DateTimeDuration
Constants ¶
View Source
const ( ONE_DAY_SECOND = 60 * 60 * 24 ONE_HOUR_SECOND = 60 * 60 )
View Source
const ( FORMAT_TIME_NORMAL = "2006-01-02 15:04:05" FORMAT_TIME_LOG = "2006/01/02 15:04:05.000" FORMAT_TIME_YEAR = "2006" FORMAT_TIME_MONTH = "01" FORMAT_TIME_DAY = "02" FORMAT_TIME_HOUR = "15" FORMAT_TIME_MINUTE = "04" FORMAT_TIME_SECOND = "05" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateTime ¶
type DateTime struct {
// contains filtered or unexported fields
}
func (*DateTime) GetTotalDay ¶
func (*DateTime) GetTotalSecond ¶
func (*DateTime) HourString ¶
func (*DateTime) MinuteString ¶
func (*DateTime) MonthString ¶
func (*DateTime) NormalString ¶
func (*DateTime) SecondString ¶
func (*DateTime) Sub ¶
func (dateTime *DateTime) Sub(other *DateTime) *DateTimeDuration
func (*DateTime) YearString ¶
type DateTimeDuration ¶
type DateTimeDuration struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.