Jump to content

Wikifunctions:Catalogue/Date operations

From Wikifunctions

Time operations

Date operations

Gregorian calendar dates

Construction and deconstruction functions for Gregorian calendar date (Z20420)
date from day of year and year (Z24962) Z20420K1: Gregorian year (Z20159) year from calendar date (Z24948)
Z20420K2: Day of Roman year (Z20342) day of year from calendar date (Z24936)
K1 Z24948
K2.Z20342K1 month from date (Z26504)
K2.Z20342K2 day of month from Gregorian calendar date (Z28143)
K1 Z24948
K2 day of the year (Z25768)
full date of weekday occurrence in month of year (Z29903) K1 Z24948
K1, K2 month from date (Z26504)
day of the week (Z20421)

See suggested functions for more function ideas.

Operations on a date

Information about a date

Information between two dates

Comparison functions for Gregorian calendar date (Z20420)
d1 d2
Q110013332
different Gregorian calendar dates (Z35790) d1 d2
Q7797295
Sign of difference of Gregorian calendar dates (Z35544)
d1 < d2
Q52834024
date before (Z25271) d1 > d2
Q47035128
later date (Z25276)
d1 d2
Q55935272
Gregorian date is on or before other date (Z35786) d1 d2
Q55935291
Gregorian date is on or after other date (Z35788)
d1 = d2
Q842346
Same Gregorian calendar date (Z20430) d1 d2
Q26161438
same calendar year (Z25820)
Conversions
Conversion functions for Gregorian calendar date (Z20420)
date (multilingual) (Z20788) String (Z6)
(ISO 8601 (Q50101))
read date in standard format (Z24007)
Unix timestamp from Gregorian calendar date (Z23801) Integer (Z16683)
(Unix time (Q14654))
Gregorian calendar date from Unix timestamp (Z23808)
Julian calendar in Gregorian calendar (Z28119) (proleptic Julian calendar (Q1985786))
Gregorian Date to Julian Day Number (Z22844) Gregorian date and time from (rational) JD (Z27478)
Converting Hijri Date to Gregorian Date function (Z28600) (Islamic calendar (Q28892))
Gregorian to Hijri date conversion function (Z28911)

Dates to strings

Strings to dates

Day of Roman year

Construction and deconstruction functions for Day of Roman year (Z20342)
Day of Roman year from components (Z20591) Z20342K1: Gregorian calendar month (Z16098) month from day of the Roman year (Z20343)
Z20342K2: Natural number (Z13518) day of month from date (Z20388)
K1, K2 Day of Roman Year to Day number in year (Z20357)

Using non-date types

Bengali date operations

Year operations

Gregorian year

Construction and deconstruction functions for Gregorian year (Z20159)
Gregorian year from components (Z20588) Z20159K1: Gregorian era (Z17813) Gregorian era of Gregorian year (Z20185)
Z20159K2: Natural number (Z13518) Gregorian year to year number (Z20160)
K1, K2 Gregorian year to ISO 8601 year integer (Z20257)

Information about a year

Comparing two years

Comparison functions for Gregorian year (Z20159)
y1 y2
Q110013332
y1 y2
Q7797295
Sign of difference of Gregorian years (Z35792)
y1 < y2
Q52834024
is first year before second (Z28833) y1 > y2
Q47035128
y1 y2
Q55935272
y1 y2
Q55935291
y1 = y2
Q842346
same Gregorian year (Z20166) y1 y2
Q26161438
y 1 BCE is year BC (Z28855) y 1 CE is year AD (Z28875)

Conversions

Intro for year

Day of the week

Month operations

Gregorian months

All Gregorian calendar month functions

Igbo months

All Igbo month functions

Era operations

Gregorian era

All Gregorian era functions

Language specific

Basque

Arabic