Add-in Functions

The following describes and lists some of the available add-in functions.

Add-in concept

You will also find a description of the LibreOffice Calc add-in interface in the Help. In addition, important functions and their parameters are described in the Help for the .

Add-ins supplied

LibreOffice contains examples for the add-in interface of LibreOffice Calc.

Analysis Functions Part One

Analysis Functions Part Two

ESTASSUPERJARO

Komputas ĉu jaro estas superjaro. Se jes, la funkcio liveras la valoron 1 (TRUE); se ne, ĝi liveras je 0 (FALSE).

Sintakso

ISLEAPYEAR(Date)

Date specifies whether a given date falls within a leap year. The Date parameter must be a valid date.

Ekzemplo

=ISLEAPYEAR(A1) returns 1, if A1 contains 1968-02-29, the valid date 29th of February 1968 in your locale setting.

You may also use =ISLEAPYEAR(DATE(1968;2;29)) or =ISLEAPYEAR("1968-02-29") giving the date string in the ISO 8601 notation.

Never use =ISLEAPYEAR(2/29/68), because this would first evaluate 2 divided by 29 divided by 68, and then calculate the ISLEAPYEAR function from this small number as a serial date number.

JAROJ

Kalkulas la diferencon en jaroj inter du datoj.

Sintakso

YEARS(StartDate; EndDate; Type)

StartDate is the first date

EndDate is the second date

Type calculates the type of difference. Possible values are 0 (interval) and 1 (in calendar years).

MONATOJ

Kalkulas la diferencon en monatoj inter du datoj.

Sintakso

MONTHS(StartDate; EndDate; Type)

StartDate is the first date

EndDate is the second date

Type calculates the type of difference. Possible values include 0 (interval) and 1 (in calendar months).

ROT13

Ĉifras ĉenon movante la signojn laŭ 13 pozicioj en la alfabeto. Post la lasta litero la alfabeto rekomencas (rotacio). Aplikante la ĉifran funkcion denove al la rezulta kodo, vi povas malĉifri la tekston.

Sintakso

ROT13(teksto)

Text is the character string to be encrypted. ROT13(ROT13(Text)) decrypts the code.

SEMAJNOENJARO

Kalkulas la nombron da semajnoj de la jaro en kiu la dato troviĝas. Kalkulas la semajnojn jene: semajnon kiu etendas en du jaroj aldonu al la jaro en kiu pliaj tagoj troviĝas.

Sintakso

SEMAJNOENJARO(dato)

Date is any date in the respective year. The Date parameter must be a valid date according to the locale settings of LibreOffice.

Ekzemplo

WEEKSINYEAR(A1) returns 53 if A1 contains 1970-02-17, a valid date for the year 1970.

SEMAJNOJ

Kalkulas la diferencon en semajnoj inter du datoj.

Sintakso

WEEKS(StartDate; EndDate; Type)

StartDate is the first date

EndDate is the second date

Type calculates the type of difference. The possible values are 0 (interval) and 1 (in numbers of weeks).

TAGOJENJARO

Kalkulas la nombron da tagoj de la jaro en kiu la donita dato troviĝas.

Sintakso

TAGOJENJARO(dato)

Date is any date in the respective year. The Date parameter must be a valid date according to the locale settings of LibreOffice.

Ekzemplo

=DAYSINYEAR(A1) returns 366 days if A1 contains 1968-02-29, a valid date for the year 1968.

TAGOJENMONATO

Kalkulas la nombron da tagoj de la monato en kiu la enigita dato troviĝas.

Sintakso

TAGOJENMONATO(dato)

Date is any date in the respective month of the desired year. The Date parameter must be a valid date according to the locale settings of LibreOffice.

Ekzemplo

=DAYSINMONTH(A1) returns 29 days if A1 contains 1968-02-17, a valid date for February 1968.

Add-ins through LibreOffice API

Add-ins can also be implemented through the LibreOffice API.