ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.Date.update
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রদত্ত তারিখের এক বা একাধিক ইউনিটকে একটি নতুন মান সেট করে একটি নতুন তারিখ তৈরি করুন। একটি টাইমজোন দেওয়া হলে সেই জোনে নতুন মান(গুলি) ব্যাখ্যা করা হয়।
ব্যবহার | রিটার্নস | Date. update ( year , month , day , hour , minute , second , timeZone ) | তারিখ |
যুক্তি | টাইপ | বিস্তারিত | এই: date | তারিখ | |
year | পূর্ণসংখ্যা, ডিফল্ট: নাল | |
month | পূর্ণসংখ্যা, ডিফল্ট: নাল | |
day | পূর্ণসংখ্যা, ডিফল্ট: নাল | |
hour | পূর্ণসংখ্যা, ডিফল্ট: নাল | |
minute | পূর্ণসংখ্যা, ডিফল্ট: নাল | |
second | সংখ্যা, ডিফল্ট: নাল | |
timeZone | স্ট্রিং, ডিফল্ট: নাল | সময় অঞ্চল (যেমন, 'America/Los_Angeles'); ইউটিসি-তে ডিফল্ট। |
উদাহরণ
কোড এডিটর (জাভাস্ক্রিপ্ট)
var date = ee.Date('2021-4-30T07:15:31.24');
print('Updated year and minute components of the input date',
date.update({
year: 2010,
minute: 59
})
);
পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap
Colab (পাইথন)
date = ee.Date('2021-4-30T07:15:31.24')
display(
'Updated year and minute components of the input date:',
date.update(year=2010, minute=59)
)
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003eDate.update()\u003c/code\u003e function modifies specific components (year, month, day, hour, minute, second) of an existing Earth Engine \u003ccode\u003eDate\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts optional arguments for each date/time component, using the provided values to update the original date.\u003c/p\u003e\n"],["\u003cp\u003eIf a \u003ccode\u003etimeZone\u003c/code\u003e is specified, the new date/time components are interpreted within that time zone, otherwise defaulting to UTC.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDate.update()\u003c/code\u003e returns a new \u003ccode\u003eDate\u003c/code\u003e object with the modifications, leaving the original date unchanged.\u003c/p\u003e\n"]]],[],null,["# ee.Date.update\n\nCreate a new Date by setting one or more of the units of the given Date to a new value. If a timeZone is given the new value(s) is interpreted in that zone.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------------|---------|\n| Date.update`(`*year* `, `*month* `, `*day* `, `*hour* `, `*minute* `, `*second* `, `*timeZone*`)` | Date |\n\n| Argument | Type | Details |\n|--------------|------------------------|---------------------------------------------------------------|\n| this: `date` | Date | |\n| `year` | Integer, default: null | |\n| `month` | Integer, default: null | |\n| `day` | Integer, default: null | |\n| `hour` | Integer, default: null | |\n| `minute` | Integer, default: null | |\n| `second` | Number, default: null | |\n| `timeZone` | String, default: null | The time zone (e.g., 'America/Los_Angeles'); defaults to UTC. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\nvar date = ee.Date('2021-4-30T07:15:31.24');\n\nprint('Updated year and minute components of the input date',\n date.update({\n year: 2010,\n minute: 59\n })\n);\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\ndate = ee.Date('2021-4-30T07:15:31.24')\n\ndisplay(\n 'Updated year and minute components of the input date:',\n date.update(year=2010, minute=59)\n)\n```"]]