Skip to content

Function: isTomorrow()

ts
function isTomorrow(date): boolean;

Check if the given date is tomorrow in local time. 检查日期是否为明天(本地时间)。

Parameters

ParameterType
dateDate

Returns

boolean

Example

ts
isTomorrow(new Date(Date.now() + 86400000)) // => true (approximately)

Since

1.0.0

Released under the MIT License.