Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

date_scheduler

计算日期和时间的偏移,并返回一个新的日期对象。

function date_scheduler(
now: DateInput,
t: number,
isDay?: boolean,
): Date;
§
date_scheduler(now: DateInput, t: number, isDay?: boolean): Date
[src]

§Parameters

§

当前日期和时间

§
t: number
[src]

时间偏移量,当 isDay 为 true 时表示天数,为 false 时表示分钟

§
isDay?: boolean optional
[src]

(可选)是否按天数单位进行偏移,默认为 false,表示按分钟单位计算偏移

§Return Type

§
Date
[src]

偏移后的日期和时间对象