LibreOffice 24.8 Help
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(កាលបរិច្ឆេទ)
កាលបរិច្ឆេទ គឺជាកាលបរិច្ឆេទណាមួយនៅក្នុងខែនីមួយៗ នៃឆ្នាំដែលចង់បាន ។ ប៉ារ៉ាម៉ែត្រ កាលបរិច្ឆេទ ត្រូវតែជាកាលបរិច្ឆេទត្រឹមត្រូវ ដែលយោងទៅតាមការកំណត់មូលដ្ឋានរបស់ LibreOffice ។
=DAYSINMONTH(A1) ត្រឡប់ 29 ថ្ងៃ ប្រសិនបើ A1 មាន 1968-02-17 កាលបរិច្ឆេទត្រឹមត្រូវសម្រាប់ខែ កុម្ភៈ ឆ្នាំ ១៩៦៨ ។
ORG.OPENOFFICE.DAYSINMONTH
គណនាចំនួនថ្ងៃនៃឆ្នាំ ដែលកាលបរិច្ឆេទដែលបានបញ្ចូលកើតឡើងនៅក្នុង ។
DAYSINYEAR(កាលបរិច្ឆេទ)
កាលបរិច្ឆេទ គឺជាកាលបរិច្ឆេទណាមួយនៅក្នុងឆ្នាំយថាទស្សន៍ ។ ប៉ារ៉ាម៉ែត្រកាលបរិច្ឆេទត្រូវតែជាកាលបរិច្ឆេទត្រឹមត្រូវ ដោយយោងតាមការកំណត់មូលដ្ឋានរបស់ LibreOffice ។
=DAYSINYEAR(A1) ត្រឡប់ 366 ថ្ងៃ ប្រសិនបើ A1 មាន 1968-02-29 កាលបរិច្ឆេទត្រឹមត្រូវសម្រាប់ឆ្នាំ ១៩៦៨ ។
ORG.OPENOFFICE.DAYSINYEAR
កំណត់ថាតើឆ្នាំមួយ គឺជាឆ្នាំផ្លោះឬអត់ ។ បើមែន អនុគមន៍នឹងត្រឡប់តម្លៃ 1 (TRUE); បើមិនមែន វានឹងត្រឡប់តម្លៃ 0 (FALSE) ។
ISLEAPYEAR("កាលបរិច្ឆេទ")
Date specifies whether a given date falls within a leap year. The Date parameter must be a valid date.
=ISLEAPYEAR(A1) ត្រឡប់ 1 ប្រសិនបើ A1 មាន 1968-02-29 កាលបរិច្ឆេទត្រឹមត្រូវគឺថ្ងៃទី ២៩ ខែ កុម្ភៈ ឆ្នាំ ១៩៦៨ នៅក្នុងការកំណត់មូលដ្ឋានរបស់អ្នក ។
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 ពីលេខតូចនេះជាលេខកាលបរិច្ឆេទស៊េរី ។
ORG.OPENOFFICE.ISLEAPYEAR
គណនាផលដកគិតជាខែរវាងកាលបរិច្ឆេទពីរ ។
MONTHS(កាលបរិច្ឆេទចាប់ផ្ដើម; កាលបរិច្ឆេទបញ្ចប់; ប្រភេទ)
កាលបរិច្ឆេទចាប់ផ្ដើម គឺជាកាលបរិច្ឆេទដំបូង
កាលបរិច្ឆេទបញ្ចប់ គឺជាកាលបរិច្ឆេទទីពីរ
ប្រភេទ គណនាប្រភេទផ្សេងៗ ។ តម្លៃដែលអាចប្រើបានរួមមាន 0 (ចន្លោះពេល) និង 1 (នៅក្នុងខែប្រតិទិន) ។
ORG.OPENOFFICE.MONTHS
បម្លែងខ្សែតួអក្សរមួយជាកូដ ដោយផ្លាស់ទីតួអក្សរ 13 ទីតាំងក្នុងអក្សរក្រម ។ បន្ទាប់ពីអក្សរ Z អក្សរក្រមចាប់ផ្តើមម្តងទៀត (បង្វិល) ។ ដោយអនុវត្តអនុគមន៍បម្លែងជាកូដម្តងទៀតទៅលើកូដលទ្ធផល អ្នកអាចបម្លែងអត្ថបទជាភាពធម្មតាវិញ ។
ROT13(អត្ថបទ)
អត្ថបទ គឺជាខ្សែអក្សរដែលត្រូវអ៊ិនគ្រីប ។ ROT13(ROT13(អត្ថបទ)) ឌិគ្រីបកូដ ។
=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.
ORG.OPENOFFICE.ROT13
Refer to the ROT13 wiki page for more details about this function.
គណនាផលដកគិតជាសប្តាហ៍រវាងកាលបរិច្ឆេទពីរ ។
WEEKS(កាលបរិច្ឆេទចាប់ផ្តើម; កាលបរិច្ឆេទបញ្ចប់; ប្រភេទ)
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.
In the following examples, dates are passed as strings. However, they can also be stored in separate cells and be passed as references.
=WEEKS("01/12/2022","01/17/2022",0) returns 0 because Type was set to 0 and there are only 5 days in the interval.
=WEEKS("01/12/2022","01/19/2022",0) returns 1 because Type was set to 0 and there are 7 days in the interval.
=WEEKS("01/12/2022","01/17/2022",1) returns 1 because Type was set to 1 and the interval contains a Monday, since 01/12/2022 is a Wednesday and 01/17/2022 is a Monday.
=WEEKS("01/10/2022","01/15/2022",1) returns 0 because Type was set to 1 and the interval does not contain any Mondays, except for the start date.
ORG.OPENOFFICE.WEEKS
គណនាចំនួនសប្តាហ៍ក្នុងឆ្នាំ ដែលមានកាលបរិច្ឆេទដែលបានបញ្ចូលនៅក្នុង កើតឡើង ។ ចំនួនសប្តាហ៍ គឺត្រូវបានកំណត់ដូចតទៅនេះ ៖ សប្តាហ៍ដែលវិសាលភាពពីរឆ្នាំគឺត្រូវបានបន្ថែមទៅក្នុងឆ្នាំ ដែលចំនួនថ្ងៃនៃសប្តាហ៍នោះកើតឡើងនៅក្នុង ។
WEEKSINYEAR(កាលបរិច្ឆេទ)
កាលបរិច្ឆេទ គឺជាកាលបរិច្ឆេទណាមួយនៅក្នុងឆ្នាំយថាទស្សន៍ ។ ប៉ារ៉ាម៉ែត្រកាលបរិច្ឆេទត្រូវតែជាកាលបរិច្ឆេទត្រឹមត្រូវ ដោយយោងតាមការកំណត់មូលដ្ឋានរបស់ LibreOffice ។
WEEKSINYEAR(A1) ត្រឡប់ 53 ប្រសិនបើ A1 មាន 1970-02-17 កាលបរិច្ឆេទត្រឹមត្រូវសម្រាប់ឆ្នាំ ១៩៧០ ។
ORG.OPENOFFICE.WEEKSINYEAR
គណនាផលដកគិតជាឆ្នាំរវាងកាលបរិច្ឆេទពីរ ។
YEARS(កាលបរិច្ឆេទចាប់ផ្ដើម; កាលបរិច្ឆេទបញ្ចប់; ប្រភេទ)
កាលបរិច្ឆេទចាប់ផ្ដើម គឺជាកាលបរិច្ឆេទដំបូង
កាលបរិច្ឆេទបញ្ចប់ គឺជាកាលបរិច្ឆេទទីពីរ
ប្រភេទ គណនាប្រភេទផ្សេងៗគ្នា ។ តម្លៃដែលអាចប្រើបានគឺ0 (ចន្លោះពេល) និង 1 (នៅក្នុងឆ្នាំប្រតិទិន) ។
ORG.OPENOFFICE.YEARS
Add-ins can also be implemented through the LibreOffice API.