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

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 .

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

Analysis Functions Part One

Analysis Functions Part Two

## DAYSINMONTH

Calculates the number of days of the month in which the date entered occurs.

### Syntax

DAYSINMONTH(Datum)

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.

### Primjer

=DAYSINMONTH(A1) vraća 29 dana ako A1 sadrži 1968-02-17, ispravan datum za veljaču 1968. godine.

## DAYSINYEAR

Calculates the number of days of the year in which the date entered occurs.

### Syntax

DAYSINYEAR(Datum)

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

### Primjer

=DAYSINYEAR(A1) vraća 366 dana ako A1 sadrži 1968-02-29, ispravan datum za 1968. godinu.

## ISLEAPYEAR

Determines whether a year is a leap year. If yes, the function will return the value 1 (TRUE); if not, it will return 0 (FALSE).

### Syntax

ISLEAPYEAR(Date)

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

### Primjer

=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.

Nikad ne koristite =ISLEAPYEAR(2/29/68), jer bi ovo prvo podijelilo 2 sa 29, pa rezultat sa 68, pa tek onda pozvalo funkciju ISLEAPYEAR koristeći ovaj mali broj kao serijsku oznaku datuma.

## MONTHS

Calculates the difference in months between two dates.

### Syntax

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

Encrypts a character string by moving the characters 13 positions in the alphabet. After the letter Z, the alphabet begins again (Rotation). By applying the encryption function again to the resulting code, you can decrypt the text.

### Syntax

ROT13(Text)

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

## WEEKS

Calculates the difference in weeks between two dates.

### Syntax

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).

## WEEKSINYEAR

Calculates the number of weeks of the year in which the date entered occurs. The number of weeks is defined as follows: a week that spans two years is added to the year in which most days of that week occur.

### Syntax

DAYSINYEAR(Datum)

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

### Primjer

=DAYSINYEAR(A1) vraća 366 dana ako A1 sadrži 1968-02-29, ispravan datum za 1968. godinu.

## YEARS

Calculates the difference in years between two dates.

### Syntax

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).