PlangoraAshExpressions.AtZone (plangora_ash_expressions v0.1.0)

Copy Markdown

Converts an instant to local wall-clock time in an IANA time zone.

Register this module in Ash's :custom_expressions configuration to write at_zone(starts_at, venue.time_zone) in an Ash expression. The result is a NaiveDateTime with the input's fractional seconds preserved. A nil instant or zone returns nil.

See the README for database typing and time zone configuration.

Summary

Functions

Callback implementation for Ash.CustomExpression.arguments/0.

Callback implementation for Ash.CustomExpression.name/0.

Functions

arguments()

Callback implementation for Ash.CustomExpression.arguments/0.

name()

Callback implementation for Ash.CustomExpression.name/0.

predicate?()