আর্থ ইঞ্জিন শেয়ার করা কম্পিউট রিসোর্স সুরক্ষিত রাখতে এবং সকলের জন্য নির্ভরযোগ্য পারফরম্যান্স নিশ্চিত করতে
নন-কমার্শিয়াল কোটা টিয়ার চালু করেছে। নন-কমার্শিয়াল প্রোজেক্টগুলো ডিফল্টভাবে কমিউনিটি টিয়ার ব্যবহার করে, তবে আপনি যেকোনো সময় একটি প্রোজেক্টের টিয়ার পরিবর্তন করতে পারেন।
ee.Date.unitRatio
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি ইউনিটের দৈর্ঘ্যের সাথে অন্যটির দৈর্ঘ্যের অনুপাত ফেরত দেয়, যেমন, ইউনিটের অনুপাত('দিন', 'মিনিট') 1440 প্রদান করে। বৈধ এককগুলি হল 'বছর', 'মাস', 'সপ্তাহ', 'দিন', 'ঘন্টা', 'মিনিট' এবং 'সেকেন্ড'।
| ব্যবহার | রিটার্নস | ee.Date.unitRatio(numerator, denominator) | ভাসা |
| যুক্তি | টাইপ | বিস্তারিত | numerator | স্ট্রিং | |
denominator | স্ট্রিং | |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
print('Minutes in a day', ee.Date.unitRatio('day', 'minute'));
print('Seconds in a year', ee.Date.unitRatio('year', 'second'));
print('Years in a month', ee.Date.unitRatio('month', 'year'));
print('Hours in a week', ee.Date.unitRatio('week', 'hour')); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap
Colab (পাইথন)
display('Minutes in a day:', ee.Date.unitRatio('day', 'minute'))
display('Seconds in a year:', ee.Date.unitRatio('year', 'second'))
display('Years in a month:', ee.Date.unitRatio('month', 'year'))
display('Hours in a week:', ee.Date.unitRatio('week', 'hour'))
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The `unitRatio` function calculates the ratio between two time units. It accepts two string arguments: `numerator` and `denominator`, representing the desired units. Valid time units include 'year', 'month', 'week', 'day', 'hour', 'minute', and 'second'. The function returns a float value representing the ratio of the numerator to the denominator (e.g., how many minutes are in a day). Examples are provided in JavaScript and Python demonstrating various unit conversions.\n"]]