Recent生成器

Recent生成器 · date.recent. 生成方法 · 示例

date.recent

生成设置

生成后在这里查看结果。

参数 & 示例

Generates a random date in the recent past.

date.recent(options?: { days?, refDate? })
options
The optional options object.
options.days
The range of days the date may be in the past. Either as a fixed amount of days or as a day range. Defaults to 1.
options.refDate
The date to use as reference point for the newly generated date. Defaults to the configured reference date.

示例

"2025-12-31T16:01:56.723Z"

请在测试环境使用合成数据。

相关生成器

探索场景模板