Documentation ¶
Index ¶
- func DurationToMSU(d time.Duration) string
- type HjriDate
- func (t HjriDate) AddDate(years, months, days int) HjriDate
- func (t HjriDate) CurrentDayStart() HjriDate
- func (h HjriDate) DayContains(timeToCheck time.Time) bool
- func (tn HjriDate) Formatted() string
- func (tn HjriDate) Gregorian() time.Time
- func (h HjriDate) MonthStartingDay() HjriDate
- func (t HjriDate) NextDayStart() HjriDate
- func (t HjriDate) NextMonthStart() HjriDate
- func (tn HjriDate) String() string
- func (h HjriDate) WeekStartingDay() HjriDate
- type KSATime
- func (t KSATime) CurrentDayStart() time.Time
- func (t KSATime) CurrentDayStartInUTC() time.Time
- func (t KSATime) Date() string
- func (t KSATime) DayContains(timeToCheck time.Time) bool
- func (t KSATime) MonthDate() string
- func (t KSATime) NextDayStart() time.Time
- func (t KSATime) NextDayStartInUTC() time.Time
- func (t KSATime) WeekDate() string
- type TimeUnit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationToMSU ¶
converts time.Duration to the most significant unit with mintues as minimum unit.
Types ¶
type HjriDate ¶
type HjriDate struct {
// contains filtered or unexported fields
}
func (HjriDate) CurrentDayStart ¶
func (HjriDate) MonthStartingDay ¶
func (HjriDate) NextDayStart ¶
func (HjriDate) NextMonthStart ¶
func (HjriDate) WeekStartingDay ¶
type KSATime ¶
func CurrentKSATime ¶
func CurrentKSATime() KSATime
func (KSATime) CurrentDayStart ¶
func (KSATime) CurrentDayStartInUTC ¶
func (KSATime) NextDayStart ¶
func (KSATime) NextDayStartInUTC ¶
Click to show internal directories.
Click to hide internal directories.