DateTimeExpressions extension Null safety

Provides expressions to extract information from date time values, or to calculate the difference between datetimes.

on

Properties

date Expression<String?>
Formats this datetime in the format year-month-day.
read-only
day Expression<int?>
Extracts the (UTC) day from this datetime expression.
read-only
hour Expression<int?>
Extracts the (UTC) hour from this datetime expression.
read-only
minute Expression<int?>
Extracts the (UTC) minute from this datetime expression.
read-only
month Expression<int?>
Extracts the (UTC) month from this datetime expression.
read-only
second Expression<int?>
Extracts the (UTC) second from this datetime expression.
read-only
secondsSinceEpoch Expression<int>
Returns an expression containing the amount of seconds from the unix epoch (January 1st, 1970) to this datetime expression. The datetime is assumed to be in utc.
read-only
year Expression<int?>
Extracts the (UTC) year from this datetime expression.
read-only

Operators

operator +(Duration duration) Expression<DateTime>
Adds duration from this date.
operator -(Duration duration) Expression<DateTime>
Subtracts duration from this date.