Skip to content

PgDateTimePart

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Selects a PostgreSQL date_part or date_trunc field. Support depends on the temporal type and server version.

public enum PgDateTimePart

Calendar century.

Century = 0

Day of month, or the interval day component.

Day = 1

Sunday-based day of week, zero through six.

DayOfWeek = 3

Day of year, starting at one.

DayOfYear = 4

Calendar decade.

Decade = 2

Seconds relative to the Unix epoch, or interval duration under PostgreSQL’s comparison rules.

Epoch = 5

Hour component.

Hour = 6

Monday-based ISO day of week, one through seven.

IsoDayOfWeek = 7

ISO week-numbering year.

IsoYear = 8

Julian date.

Julian = 9

Seconds including the fractional part, multiplied by one million.

Microseconds = 10

Calendar millennium.

Millennium = 11

Seconds including the fractional part, multiplied by one thousand.

Milliseconds = 12

Minute component.

Minute = 13

Month of year, or the interval month component modulo twelve.

Month = 14

Quarter of year.

Quarter = 15

Seconds including the fractional part.

Second = 16

Seconds east of UTC.

TimeZone = 17

Hour component of the UTC offset.

TimeZoneHour = 18

Minute component of the UTC offset.

TimeZoneMinute = 19

ISO week number.

Week = 20

Year, with negative BC years and no year zero.

Year = 21