Calecto.DateTime

Calendar DateTime for Ecto for representing datetimes in any timezone.

This type is only compatible with Postgres.

Summary

blank?(value)

Datetimes are blank when given as strings and the string is blank

cast(dt)

Cast DateTime

dump(dt)

Converts to a tuple of:

  • erlang style tuples with microseconds added
  • total_offset in seconds
  • timezone
load(arg1)

Converts tuple to Calendar.DateTime

type()

The Ecto primitive type

Functions

blank?(value)

Datetimes are blank when given as strings and the string is blank.

cast(dt)

Cast DateTime

dump(dt)

Converts to a tuple of:

  • erlang style tuples with microseconds added
  • total_offset in seconds
  • timezone
load(arg1)

Converts tuple to Calendar.DateTime

Tuple should consist of:

  • erlang style tuples with microseconds added
  • total_offset in seconds
  • timezone
type()

The Ecto primitive type.