Documentation
¶
Index ¶
- Constants
- func AfterPeriod(t time.Time, period int64, measure time.Duration) time.Time
- func BeforePeriod(t time.Time, period int64, measure time.Duration) time.Time
- func BeginOfDay(t time.Time) time.Time
- func BeginOfNextDay(t time.Time) time.Time
- func BeginOfNextWeek(t time.Time) time.Time
- func BeginOfPrevDay(t time.Time) time.Time
- func BeginOfPrevWeek(t time.Time) time.Time
- func GetBerlinLocation() *time.Location
- func GetMoscowLocation() *time.Location
- func GetSamaraLocation() *time.Location
- type DateTimeDiff
Constants ¶
View Source
const ( DateFormatDashYYYYMMDD = "2006-01-02" DateFormatPointDDMMYYYY = "02.01.2006" DateFormatPointDDMMYY = "02.01.06" DateFormatDashDDMMYYYY = "02-01-2006" DateFormatDashDDMMYY = "02-01-06" DateTimeFormatDashYYYYMMDDHHmmss = "2006-01-02 15:04:05" DateTimeFormat1C = "2006-01-02T15:04:05" DateTimeFormatQiwi = "02012006 15:04:05" DateFormatYYYYMMDD = "20060102" DateTimeFormatYYYYMMDDHHmmss = "20060102150405" )
View Source
const ( WeekDays = 7 MonthDays = 31 YearDays = 365 )
View Source
const ( SecondsInMinute = 60 SecondsInHour = 3600 SecondsInDay = 86400 MinutesInHour = 60 MinutesInDay = 1440 HourInDay = 24 MonthInYear = 12 )
Variables ¶
This section is empty.
Functions ¶
func GetBerlinLocation ¶ added in v0.0.126
func GetMoscowLocation ¶ added in v0.0.87
func GetSamaraLocation ¶ added in v0.0.87
Types ¶
Click to show internal directories.
Click to hide internal directories.