BoltexNif.Duration (boltex_nif v0.1.1)

View Source

A Neo4j temporal duration.

Bolt preserves the four components independently (months and days can't be folded into seconds without a reference date/timezone), so this struct keeps them separate.

Summary

Types

t()

@type t() :: %BoltexNif.Duration{
  days: integer(),
  months: integer(),
  nanoseconds: integer(),
  seconds: integer()
}