taqweem

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationToMSU

func DurationToMSU(d time.Duration) string

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 HijriOf

func HijriOf(t time.Time) HjriDate

func NowHijri

func NowHijri() HjriDate

func (HjriDate) AddDate

func (t HjriDate) AddDate(years, months, days int) HjriDate

func (HjriDate) CurrentDayStart

func (t HjriDate) CurrentDayStart() HjriDate

func (HjriDate) DayContains

func (h HjriDate) DayContains(
	timeToCheck time.Time,
) bool

func (HjriDate) Formatted

func (tn HjriDate) Formatted() string

func (HjriDate) Gregorian

func (tn HjriDate) Gregorian() time.Time

func (HjriDate) MonthStartingDay

func (h HjriDate) MonthStartingDay() HjriDate

func (HjriDate) NextDayStart

func (t HjriDate) NextDayStart() HjriDate

func (HjriDate) NextMonthStart

func (t HjriDate) NextMonthStart() HjriDate

func (HjriDate) String

func (tn HjriDate) String() string

func (HjriDate) WeekStartingDay

func (h HjriDate) WeekStartingDay() HjriDate

type KSATime

type KSATime time.Time

func CurrentKSATime

func CurrentKSATime() KSATime

func KSATimeOf

func KSATimeOf(t time.Time) KSATime

func (KSATime) CurrentDayStart

func (t KSATime) CurrentDayStart() time.Time

func (KSATime) CurrentDayStartInUTC

func (t KSATime) CurrentDayStartInUTC() time.Time

func (KSATime) Date

func (t KSATime) Date() string

func (KSATime) DayContains

func (t KSATime) DayContains(
	timeToCheck time.Time,
) bool

func (KSATime) MonthDate

func (t KSATime) MonthDate() string

func (KSATime) NextDayStart

func (t KSATime) NextDayStart() time.Time

func (KSATime) NextDayStartInUTC

func (t KSATime) NextDayStartInUTC() time.Time

func (KSATime) WeekDate

func (t KSATime) WeekDate() string

type TimeUnit

type TimeUnit int
const (
	DAY TimeUnit = iota
	HOUR
	MINUTE
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL