NebulaGraphEx.Types.NebTime (nebula_graph_ex v0.1.10)

Copy Markdown View Source

NebulaGraph time-of-day value (no timezone).

Use to_time/1 to convert to a standard %Time{}.

Fields

  • :hour0..23
  • :minute0..59
  • :second0..59
  • :microsecond0..999_999

Summary

Functions

Converts to a standard %Time{}.

Converts to a standard %Time{}, raising on invalid values.

Types

t()

@type t() :: %NebulaGraphEx.Types.NebTime{
  hour: 0..23,
  microsecond: non_neg_integer(),
  minute: 0..59,
  second: 0..59
}

Functions

to_time(neb_time)

@spec to_time(t()) :: {:ok, Time.t()} | {:error, atom()}

Converts to a standard %Time{}.

to_time!(nt)

@spec to_time!(t()) :: Time.t()

Converts to a standard %Time{}, raising on invalid values.