با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک DateRange را پوشش می دهد که واحد نوع مشخص شده را پوشش می دهد که حاوی این تاریخ است، به عنوان مثال، Date('2013-3-15').getRange('year') DateRange ('2013-1-1', '2014-1-1') را برمی گرداند.
استفاده
برمی گرداند
Date.getRange (unit, timeZone )
محدوده تاریخ
استدلال
تایپ کنید
جزئیات
این: date
تاریخ
unit
رشته
یکی از «سال»، «ماه»، «هفته»، «روز»، «ساعت»، «دقیقه» یا «دوم».
timeZone
رشته، پیش فرض: null
منطقه زمانی (به عنوان مثال، "America/Los_Angeles")؛ پیش فرض UTC است.
تاریخ آخرین بهروزرسانی 2025-06-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-06-24 بهوقت ساعت هماهنگ جهانی."],[[["`Date.getRange()` returns a `DateRange` object representing the specified time unit (year, month, week, day, hour, minute, or second) that contains the input date."],["The returned `DateRange` spans the entire unit of time, for example, if the input date is March 15, 2013, and the unit is 'year', the returned `DateRange` will be from January 1, 2013, to January 1, 2014."],["You can optionally specify a time zone for the `DateRange`; if not provided, it defaults to UTC."],["This function is useful for creating time-based filters or selecting data within specific time intervals."]]],[]]