Skip to content

datetime

getBetweenDates 获取范围内日期/时间列表

试一试

签名

getBetweenDates(from: Date, to: Date, type: Type): Date[]

参数

  1. from (Date): 开始日期/时间
  2. to (Date): 截止日期/时间
  3. type (Type): 类型,可选值:year/month/week/day/hour/minute/second

返回值

(Date[]): 日期/时间列表