Example Usage
import { TimeRange } from "@openrouter/sdk/models/operations";
let value: TimeRange = {
end: new Date("2027-12-31T23:59:59Z"),
start: new Date("2027-12-31T23:59:59Z"),
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
end | Date | :heavy_check_mark: | ISO 8601 UTC timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected. | 2027-12-31T23:59:59Z |
start | Date | :heavy_check_mark: | ISO 8601 UTC timestamp. Must include seconds (YYYY-MM-DDTHH:MM:SSZ; fractional seconds allowed); minute-precision timestamps are rejected. | 2027-12-31T23:59:59Z |