Skip to content

Commit ad651c2

Browse files
committed
Make EpochTime and Duration parameterized with the unit
1 parent 771fae7 commit ad651c2

File tree

63 files changed

+2000
-688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2000
-688
lines changed

docs/modeling-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ feel free to add more if it feels appropriate!
158158
159159
Elasticsearch uses a lot of dates, times and durations. There are various types available to capture the variety of types and representations in the specification:
160160
161-
* for date and time: `DateTime` for formatted dates, `EpochMillis`, `EpochSeconds`, etc. for number values
162-
* for intervals: `Duration` for formatted values, `DurationMillis`, `DurationSeconds`, etc. for number values
161+
* for date and time: `DateTime` for formatted dates, `EpochTime<UnitMillis>`, `EpochTime<UnitSeconds>`, etc. for number values
162+
* for intervals: `Duration` for formatted values, `DurationValue<UnitMillis>`, `DurationValue<UnitSeconds>`, etc. for number values
163163
* for time of day: `TimeOfDay
164164

165165
See [`specification/_types/Time.ts`](../specification/_types/Time.ts) for additional details.

0 commit comments

Comments
 (0)