Skip to content
Astera Technology

Set an API export boundary for a Hong Kong business day

Convert an explicitly defined local interval to UTC and include each boundary once.

Write both local and UTC boundaries

RFC 3339 timestamps represent instants with UTC offsets; a business-day interval is a separate policy. This example defines 10 October 2026 in Hong Kong as start-inclusive, end-exclusive. It does not convert a date-only field into a timestamp.

Synthetic Hong Kong day window
Boundary or eventUTC representationIncluded in 10 October?
Start: 2026-10-10T00:00:00+08:002026-10-09T16:00:00ZYes
Last whole-second example2026-10-10T15:59:59ZYes; higher precision also follows the interval
End: 2026-10-11T00:00:00+08:002026-10-10T16:00:00ZNo; next day starts here
Download editable CSV ↓

Test adjacent windows together

Synthetic interval predicate
timestamp >= start_utc AND timestamp < end_utc

Keep the zone and cutoff policy beside the export. Test an event exactly at each boundary and one with fractional seconds. Do not use “23:59:59” as an inclusive end if the source can represent finer precision.

Which day owns 2026-10-10T16:00:00Z under this rule?

Show the worked answer

11 October in Hong Kong. It is excluded from the 10 October interval and included at the start of the next interval.

Related resources