RDF.ex v0.7.1 RDF.DateTime View Source
RDF.Datatype
for XSD dateTime.
Link to this section Summary
Functions
Converts a datetime literal to a canonical string, preserving the zone information.
Builds a RDF.DateTime
literal for current moment in time.
Extracts the timezone string from a RDF.DateTime
literal.
Link to this section Types
Link to this section Functions
Link to this function
build_literal(value, lexical, opts)
View Sourcebuild_literal(RDF.Literal.literal_value() | nil, String.t() | nil, map()) :: RDF.Literal.t()
Link to this function
build_literal_by_value(value, opts)
View Sourcebuild_literal_by_value(any(), map()) :: RDF.Literal.t()
Link to this function
canonical_lexical_with_zone(literal)
View Sourcecanonical_lexical_with_zone(RDF.Literal.t()) :: String.t() | nil
Converts a datetime literal to a canonical string, preserving the zone information.
Link to this function
new(value, opts \\ %{})
View Sourcenew(any(), map() | keyword()) :: RDF.Literal.t()
Builds a RDF.DateTime
literal for current moment in time.
Extracts the timezone string from a RDF.DateTime
literal.