Boltx.Types.TimeWithTZOffset (Boltx v0.0.2)

Manage a Time and its time zone offset.

This temporal types hs been added in bolt v2

Summary

Functions

Create a valid TimeWithTZOffset from a Time and offset in seconds

Convert TimeWithTZOffset struct in a cypher-compliant string

Types

@type t() :: %Boltx.Types.TimeWithTZOffset{
  time: Calendar.time(),
  timezone_offset: integer()
}

Functions

Link to this function

create(time, offset)

@spec create(Calendar.time(), integer()) :: t()

Create a valid TimeWithTZOffset from a Time and offset in seconds

Link to this function

format_param(param)

@spec format_param(t()) :: {:ok, String.t()} | {:error, any()}

Convert TimeWithTZOffset struct in a cypher-compliant string