Matches request date-time values against expected patterns, supporting offsets, truncation, and strict formats for MockServer expectations.
// Source: https://github.com/mock-server/mockserver-monorepo | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package org.mockserver.matchers; import org.apache.commons.lang3.StringUtils; import org.mockserver.time.DateOffset; import org.mockserver.time.DateTruncation; import org.mockserver.time.StrictDateFormats; import org.mockserver.time.TimeService; import java.text.ParsePosition; import java.time.DateTimeException; import java.time.Duration; import java.time.Instant; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.ZoneId; import java.time.ZoneOffset; import java.time.ZonedDateTime; import java.time.format.DateTimeForm ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key