RDF.ex v0.5.4 RDF.DateTime View Source

RDF.Datatype for XSD dateTime.

Link to this section Summary

Link to this section Functions

Link to this function build_literal(value, lexical, opts) View Source
Link to this function build_literal_by_lexical(lexical, opts) View Source
Link to this function build_literal_by_value(value, opts) View Source
Link to this function canonical_lexical_with_zone(literal) View Source

Converts a datetime literal to a canonical string, preserving the zone information.

Link to this function greater_than?(literal1, literal2) View Source
Link to this function less_than?(literal1, literal2) View Source
Link to this function new!(value, opts \\ %{}) View Source

Builds a RDF.DateTime literal for current moment in time.

Extracts the timezone string from a RDF.DateTime literal.