Bolty.Types.TimeWithTZOffset (Bolty v0.0.10)

Copy Markdown

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

t()

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

Functions

create(time, offset)

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

Create a valid TimeWithTZOffset from a Time and offset in seconds

format_param(param)

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

Convert TimeWithTZOffset struct in a cypher-compliant string