Earth Engine ने
गैर-व्यावसायिक इस्तेमाल के लिए कोटा टियर लॉन्च किए हैं. इससे शेयर किए गए कंप्यूट संसाधनों को सुरक्षित रखने और सभी के लिए भरोसेमंद परफ़ॉर्मेंस को पक्का करने में मदद मिलेगी. गैर-व्यावसायिक प्रोजेक्ट के लिए, डिफ़ॉल्ट रूप से कम्यूनिटी टियर का इस्तेमाल किया जाता है. हालांकि, किसी प्रोजेक्ट के टियर को कभी भी बदला जा सकता है.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ee.Date.getFraction
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, तारीख के बीत चुके समय को किसी तय यूनिट में दिखाता है. यह यूनिट 0 से 1 के बीच की होनी चाहिए.
| इस्तेमाल | रिटर्न |
|---|
Date.getFraction(unit, timeZone) | फ़्लोट |
| आर्ग्यूमेंट | टाइप | विवरण |
|---|
यह: date | तारीख | |
unit | स्ट्रिंग | 'साल', 'महीना', 'हफ़्ता', 'दिन', 'घंटा', 'मिनट' या 'सेकंड' में से कोई एक. |
timeZone | स्ट्रिंग, डिफ़ॉल्ट: null | टाइम ज़ोन (उदाहरण के लिए, 'America/Los_Angeles'); डिफ़ॉल्ट रूप से यूटीसी पर सेट होता है. |
उदाहरण
कोड एडिटर (JavaScript)
var date = ee.Date('2021-4-30T07:15:31.24');
print('Elapsed fraction of a year', date.getFraction('year'));
print('Elapsed fraction of a month', date.getFraction('month'));
print('Elapsed fraction of a week', date.getFraction('week'));
print('Elapsed fraction of a day', date.getFraction('day'));
print('Elapsed fraction of an hour', date.getFraction('hour'));
print('Elapsed fraction of a minute', date.getFraction('minute'));
print('Elapsed fraction of a second', date.getFraction('second'));
Python सेटअप
Python API के बारे में जानकारी पाने और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के लिए,
Python एनवायरमेंट पेज देखें.
import ee
import geemap.core as geemap
Colab (Python)
date = ee.Date('2021-4-30T07:15:31.24')
display('Elapsed fraction of a year:', date.getFraction('year'))
display('Elapsed fraction of a month:', date.getFraction('month'))
display('Elapsed fraction of a week:', date.getFraction('week'))
display('Elapsed fraction of a day:', date.getFraction('day'))
display('Elapsed fraction of an hour:', date.getFraction('hour'))
display('Elapsed fraction of a minute:', date.getFraction('minute'))
display('Elapsed fraction of a second:', date.getFraction('second'))
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-12-01 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-12-01 (UTC) को अपडेट किया गया."],[],[]]