Date generators
Here are listed predefined date generators.
Date in range
This generator generates dates within a specified range.
Configuration
Keep in mind the DateTimeDeclaration
is a specific type to ease the
bounds definition in the configuration. Have a look on these examples:
Declaring the date as number
// Using string-based declaration of date
const declaration1: DateTimeDeclaration = '1999-12-31';
// Using string-based declaration of date and time without ms
const declaration2: DateTimeDeclaration = '1999-12-31T11:25:31';
// Using string-based declaration of date and time with ms
const declaration3: DateTimeDeclaration = '1999-12-31T11:25:31.975';
// Using number-based declaration of date (1970-01-01 at midnight)
const declaration1: DateTimeDeclaration = 0;
// Using number-based declaration of date (2014-09-12 at 23:52:25)
const declaration2: DateTimeDeclaration = 1413157945123;
// Using number-based declaration of date (1925-03-22 at 00:07:35)
const declaration2: DateTimeDeclaration = -1413157945123;
Here you can see how to define the whole configuration: