Функтсияҳои Васлак

Contents

# Add-in Functions

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

## Васлакҳои мавҷуда

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

Функтсияҳои Таҳлилӣ, Қисми Якум

Функтсияҳои Таҳлилӣ, Қисми Дуюм

## DAYSINMONTH

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

#### Syntax

DAYSINMONTH(Date)

Date: Муайяк мекунад, ки санаи додашуда дар соли кабиса аст. ,Санаи додашуда формати дурусти дар ҷӯрсозиҳои LibreOffice гузошташударо истифода кунад.

#### Example

DAYSINMONTH(A1) натиҷа 29 рӯз агар A1 дорои 2/17/68, санаи дурусти Феврали 1968.

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.DAYSINMONTH

DAYSINMONTH wiki page.

## DAYSINYEAR

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

#### Syntax

DAYSINYEAR(Date)

Date: Муайяк мекунад, ки санаи додашуда дар соли кабиса аст. ,Санаи додашуда формати дурусти дар ҷӯрсозиҳои LibreOffice гузошташударо истифода кунад.

#### Example

DAYSINYEAR(A1) натиҷа 366 рӯз, агар A1 дорои 2/29/68, санаи дуруст дар 1968.

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.DAYSINYEAR

DAYSINYEAR wiki page.

## ISLEAPYEAR

Муайян мекунад, ки сол соли кабиса аст. Агар дуруст бошад натиҷа 1 (ҲАҚҚОНӢ); вагарна 0 (ҚАЛБАКӢ).

#### Syntax

ISLEAPYEAR(Date)

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

Microsoft Excel wrongly assumes year 1900 to be a leap year and considers the inexistent day of 1900-02-29 as valid in date calculations. Dates prior to 1900-03-01 are therefore different in Excel and Calc.

#### Example

ISLEAPYEAR(A1) натиҷа 1, агар A1 дорои 2/29/68 бошад, санаи дурусти 29 Феврали 1968 бошад.

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

ISLEAPYEAR(2/29/68), зеро, ки вай аввал 2 ро ба 29 ба 68 тақсим карда, баъд функтсияи ISLEAPYEAR-ро истифода мекунад.

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.ISLEAPYEAR

ISLEAPYEAR wiki page.

## MONTHS

Фарқияти моҳро миёни ду сана муайян мекунад.

#### Syntax

MONTHS(StartDate; EndDate; Type)

Start date: Санаи аввал

End date: Санаи дуюм

Type: Типи фарқият: 0 (интервал) ва 1 (моҳ).

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.MONTHS

MONTHS wiki page.

## ROT13

Рамзро кодбаст мекунад бо кӯчонидан ба 13 ҷой дар алифбо. Пас аз Ҷ, алифбо аз нав оғоз мешавад (Даврзананда). Бо истифода аз ин функтсия метавонед матнро аз кодбаст бароред.

#### Syntax

ROT13(Text)

Text: Матни кодбастшаванда. ROT13(ROT13(Text)) матнро аз кодбаст мебарорад.

#### Example

=ROT13("Gur Qbphzrag Sbhaqngvba jnf sbhaqrq va Frcgrzore 2010.") returns the string "The Document Foundation was founded in September 2010.". Notice how spaces, digits, and full stops are unaffected by ROT13.

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.ROT13

Refer to the ROT13 wiki page for more details about this function.

## WEEKS

Фарқияти ҳафтаҳои миёни ду санаро муайян мекунад.

#### Syntax

WEEKS(StartDate; EndDate; Type)

StartDate is the start date in the interval.

EndDate is the end date in the interval. The end date must be greater than the start date, or else an error is returned.

Type specifies the type of difference to be calculated. Possible values are 0 (time interval) or 1 (calendar weeks).

If Type = 0 the function will assume that 7 days is equivalent to one week without considering any specific day to mark the beginning of a week.

If Type = 1 the function will consider Monday to be the first day of the week. Therefore, except for the start date, each occurrence of a Monday in the interval is counted as an additional week.

This function considers Monday to be the first day of the week regardless of the current locale settings.

#### Example

In the following examples, dates are passed as strings. However, they can also be stored in separate cells and be passed as references.

=WEEKS("2022-01-12","2022-01-17",0) returns 0 because Type was set to 0 and there are only 5 days in the interval.

=WEEKS("2022-01-12","2022-01-19",0) returns 1 because Type was set to 0 and there are 7 days in the interval.

=WEEKS("2022-01-12","2022-01-17",1) returns 1 because Type was set to 1 and the interval contains a Monday, since 2022-01-12 is a Wednesday and 2022-01-17 is a Monday.

=WEEKS("2022-01-12","2022-01-15",1) returns 0 because Type was set to 1 and the interval does not contain any Mondays, except for the start date.

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.WEEKS

WEEKS wiki page.

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

WEEKSINYEAR(Date)

Date: Муайяк мекунад, ки санаи додашуда дар соли кабиса аст. ,Санаи додашуда формати дурусти дар ҷӯрсозиҳои LibreOffice гузошташударо истифода кунад.

Following ISO 8601, this function considers Monday to be the first day of the week, and the first week of a year is the one with most days in this year.

#### Example

WEEKSINYEAR(A1) натиҷа 53 агар A1 дорои 2/17/70, санаи дурусти 1970 бошад.

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.WEEKSINYEAR

WEEKSINYEAR wiki page.

## YEARS

Фарқияти солро миёни ду сана муайян месозад.

#### Syntax

YEARS(StartDate; EndDate; Type)

Start date: Санаи аввал

End date: Санаи дуюм

Type: Типи фарқият: 0 (интервал) ва 1 (сол).

#### Technical information

This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.YEARS

YEARS wiki page.

## Васлакҳо таввасути LibreOffice API

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

Мавзӯҳои алоқаманд

Functions by Category