[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ScheduleInterval.ts
/** * @since 2.0.0 */ import type * as Duration from "./Duration.js" import * as internal from "./internal/schedule/interval.js" import type * as Option from "./Option.js" /** * @since 2.0.0 * @category symbols */ export const IntervalTypeId: unique symbol = internal.IntervalTypeId /** * @since 2.0.0 * @category symbols */ export type IntervalTypeId = typeof IntervalTypeId /** * An `Interval` represents an interval of time. Intervals can encompass all * time, or no time at all. * * @since 2.0.0 * @category models */ export interface Interval { readonly [IntervalTypeId]: IntervalTypeId readonly startMillis: number readonly endMillis: number } /** * Constructs a new interval from the two specified endpoints. If the start * endpoint greater than the end endpoint, then a zero size interval will be * returned. * * @since 2.0.0 * @category constructors */ export const make: (startMillis: number, endMillis: number) => Interval = internal.make /** * An `Interval` of zero-width. * * @since 2.0.0 * @category constructors */ export const empty: Interval = internal.empty /** * Returns `true` if this `Interval` is less than `that` interval, `false` * otherwise. * * @since 2.0.0 * @category ordering */ export const lessThan: { /** * Returns `true` if this `Interval` is less than `that` interval, `false` * otherwise. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => boolean /** * Returns `true` if this `Interval` is less than `that` interval, `false` * otherwise. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): boolean } = internal.lessThan /** * Returns the minimum of two `Interval`s. * * @since 2.0.0 * @category ordering */ export const min: { /** * Returns the minimum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => Interval /** * Returns the minimum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): Interval } = internal.min /** * Returns the maximum of two `Interval`s. * * @since 2.0.0 * @category ordering */ export const max: { /** * Returns the maximum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => Interval /** * Returns the maximum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): Interval } = internal.max /** * Returns `true` if the specified `Interval` is empty, `false` otherwise. * * @since 2.0.0 * @category ordering */ export const isEmpty: (self: Interval) => boolean = internal.isEmpty /** * Returns `true` if the specified `Interval` is non-empty, `false` otherwise. * * @since 2.0.0 * @category ordering */ export const isNonEmpty: (self: Interval) => boolean = internal.isNonEmpty /** * Computes a new `Interval` which is the intersection of this `Interval` and * that `Interval`. * * @since 2.0.0 * @category ordering */ export const intersect: { /** * Computes a new `Interval` which is the intersection of this `Interval` and * that `Interval`. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => Interval /** * Computes a new `Interval` which is the intersection of this `Interval` and * that `Interval`. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): Interval } = internal.intersect /** * Calculates the size of the `Interval` as the `Duration` from the start of the * interval to the end of the interval. * * @since 2.0.0 * @category getters */ export const size: (self: Interval) => Duration.Duration = internal.size /** * Computes a new `Interval` which is the union of this `Interval` and that * `Interval` as a `Some`, otherwise returns `None` if the two intervals cannot * form a union. * * @since 2.0.0 * @category utils */ export const union: { /** * Computes a new `Interval` which is the union of this `Interval` and that * `Interval` as a `Some`, otherwise returns `None` if the two intervals cannot * form a union. * * @since 2.0.0 * @category utils */ (that: Interval): (self: Interval) => Option.Option<Interval> /** * Computes a new `Interval` which is the union of this `Interval` and that * `Interval` as a `Some`, otherwise returns `None` if the two intervals cannot * form a union. * * @since 2.0.0 * @category utils */ (self: Interval, that: Interval): Option.Option<Interval> } = internal.union /** * Construct an `Interval` that includes all time equal to and after the * specified start time. * * @since 2.0.0 * @category constructors */ export const after: (startMilliseconds: number) => Interval = internal.after /** * Construct an `Interval` that includes all time equal to and before the * specified end time. * * @category constructors * @since 2.0.0 */ export const before: (endMilliseconds: number) => Interval = internal.before
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.9 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344