Duration
SurrealDB duration values map to Java's java.time.Duration. The SDK handles conversion automatically when deserializing query results into Value objects or POJOs.
Value methods
.isDuration()
Checks if the value is a duration.
Returns: boolean
.getDuration()
Returns the duration as a java.time.Duration.
Returns: java.time.Duration
POJO mapping
When using typed methods, duration fields in your POJO should be declared as Duration.
Example
See Also
Value types — Type mapping overview
Value — The Value class reference
SurrealQL durations — Duration types in SurrealDB