Boltx.Types.DateTimeWithTZOffset (Boltx v0.0.4)

Manage a Time and its time zone offset.

This temporal types hs been added in bolt v2

Summary

Functions

Create a valid DateTimeWithTZOffset from a NaiveDateTime and offset in seconds

Convert DateTimeWithTZOffset struct in a cypher-compliant string

Types

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

Functions

Link to this function

create(naive_datetime, offset)

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

Create a valid DateTimeWithTZOffset from a NaiveDateTime and offset in seconds

Link to this function

format_param(param)

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

Convert DateTimeWithTZOffset struct in a cypher-compliant string