Represents a Zeit (time) object in the user's timezone.
buildCycle(): UserZeit
Builds a cycle DateTime object.
buildPeriod(): ZeitPeriod
Builds a ZeitPeriod object from start and end dates.
currentCycle(interval?: ZeitInterval,now?: UserZeit,): ZeitPeriod
Gets the current cycle based on the current date.
cycleEndsAt(): UserZeit
Generates a cycle end date.
cycleStartsAt(): UserZeit
Generates a cycle start date.
cycles(numberOfCycles: number,options?: { interval: ZeitInterval; startZeit?: UserZeit; },): Cycles
Generates cycles starting from this UserZeit.
cyclesFrom(): Cycles
Generates cycles starting from a specified date.
cyclesUntil(endZeit: UserZeit,options?: { interval: ZeitInterval; },): Cycles
Generates cycles starting from this UserZeit until a specified end date.
daysBetween(otherZeit: UserZeit): number
Calculates the number of days between this UserZeit and another UserZeit.
getNearestCycleStart(startZeit: UserZeit,interval: ZeitInterval,): UserZeit
Gets the nearest cycle start date.
Gets the current DateTime, either from the stored 'now' value or creates a new one.
Gets the timezone of this UserZeit.
getZeit(): DateTime
Gets the Luxon DateTime object for this UserZeit.
isDifferentDate(zeit: UserZeit): boolean
Checks if this UserZeit has a different date than another UserZeit.
isSameDate(zeit: UserZeit): boolean
Checks if this UserZeit has the same date as another UserZeit.
isSameDateOrAfter(zeit: UserZeit): boolean
Checks if this UserZeit is after or the same as another UserZeit.
isSameDateOrBefore(zeit: UserZeit): boolean
Checks if this UserZeit is before or the same as another UserZeit.
isSameOrAfter(zeit: UserZeit): boolean
Checks if this UserZeit is after or the same as another UserZeit.
isSameOrBefore(zeit: UserZeit): boolean
Checks if this UserZeit is before or the same as another UserZeit.
nextCycle(interval?: ZeitInterval,now?: UserZeit,): ZeitPeriod
Gets the next cycle based on the current date.
previousCycle(interval?: ZeitInterval,now?: UserZeit,): ZeitPeriod
Gets the previous cycle based on the current date.
Sets the time to midnight.
Converts this UserZeit to a DatabaseZeit in UTC.
Converts the UserZeit to a DatabaseZeit ISO 8601 string.
Converts the UserZeit to a DatabaseZeit ISO 8601 date string (without time).
Creates a UserZeit instance representing the current time in the specified timezone.
sortObjects<T extends { [key: string]: unknown; }>(): T[]
Sorts an array of objects containing UserZeit properties.