Fungsi Tambahan

Modul
Isi
Indeks 🔎︎

# Add-in Functions

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

Konsep Tambahan

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 Shared Library LibreOffice Calc add-in DLL
.

## Add-in

LibreOffice memiliki contoh untuk antarmuka tambahan bagi LibreOffice Calc.

Fungsi Analisis Bagian Satu

Fungsi Analisis Bagian Dua

## DAYSINMONTH

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

### Sintaksis

DAYSINMONTH(Tanggal)

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.

### Contoh

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

## DAYSINYEAR

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

### Sintaksis

DAYSINYEAR(Tanggal)

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

### Contoh

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

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

### Sintaksis

ISLEAPYEAR

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

### Contoh

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

## MONTHS

Menghitung perbedaan dua hari dalam bulan.

### Sintaksis

MONTHS(StartDate; EndDate; Type)

Nilai adalah nilai yang akan diperiksa.

Nilai adalah nilai yang akan diperiksa.

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.

### Sintaksis

ROT13(Teks)

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

## WEEKS

Menghitung selisih minggu antara dua tanggal.

### Sintaksis

WEEKS(StartDate; EndDate; Type)

Nilai adalah nilai yang akan diperiksa.

Nilai adalah nilai yang akan diperiksa.

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.

### Sintaksis

WEEKSINYEAR(Tanggal)

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

### Contoh

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

## YEARS

Menghitung perbedaan tahun pada dua tanggal.

### Sintaksis

YEARS(StartDate; EndDate; Type)

Nilai adalah nilai yang akan diperiksa.

Nilai adalah nilai yang akan diperiksa.

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

## Tambahan melalui API LibreOffice

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

Related Topics

Functions by Category