Earth Engine は、共有コンピューティングリソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層を導入しています。非商用プロジェクトではデフォルトでコミュニティ
ティアが使用されますが、プロジェクトのティアはいつでも変更できます。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ee.Date
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
新しい Date オブジェクトを構築します。
| 引数 | タイプ | 詳細 |
|---|
date | ComputedObject|Date|Number|String | 変換する日付。数値(エポックからのミリ秒数)、ISO 日付文字列、JavaScript Date、ComputedObject のいずれか。 |
tz | 文字列、省略可 | 文字列の日付でのみ使用されるオプションのタイムゾーン。 |
例
コードエディタ(JavaScript)
// Numeric inputs are interpreted as milliseconds from Unix epoch.
print(ee.Date(0)); // Date (1970-01-01 00:00:00)
// Scale factors can make numerical inputs more readable (e.g. 60 seconds).
print(ee.Date(60 * 1000)); // Date (1970-01-01 00:01:00)
// ISO 8601 date string input examples.
print(ee.Date('2020')); // Date (2020-01-01 00:00:00)
print(ee.Date('2017-6-24')); // Date (2017-06-24 00:00:00)
print(ee.Date('2017-06-24')); // Date (2017-06-24 00:00:00)
print(ee.Date('2017-6-24T00:14:46')); // Date (2017-06-24 00:14:46)
print(ee.Date('2017-06-24T23:59:59')); // Date (2017-06-24 23:59:59)
// With an optional time zone.
print(ee.Date('2020', 'US/Mountain')); // Date (2020-01-01T07:00:00)
// Convert JavaScript now to Earth Engine Date
print(ee.Date(Date.now()));
Python の設定
Python API とインタラクティブな開発での geemap の使用については、
Python 環境のページをご覧ください。
import ee
import geemap.core as geemap
Colab(Python)
from datetime import datetime
# Numeric inputs are interpreted as milliseconds from Unix epoch.
display(ee.Date(0).format()) # 1970-01-01T00:00:00
# Scale factors can make numerical inputs more readable (e.g. 60 seconds).
display(ee.Date(60 * 1000).format()) # 1970-01-01T00:01:00
# ISO 8601 date string input examples.
display(ee.Date('2020').format()) # 2020-01-01T00:00:00
display(ee.Date('2017-6-24').format()) # 2017-06-24T00:00:00
display(ee.Date('2017-06-24').format()) # 2017-06-24T00:00:00
display(ee.Date('2017-6-24T00:14:46').format()) # 2017-06-24T00:14:46
display(ee.Date('2017-06-24T23:59:59').format()) # 2017-06-24T23:59:59
# With an optional time zone.
display(ee.Date('2020', 'US/Mountain').format()) # 2020-01-01T07:00:00
# Convert Python datetime.now() to Earth Engine Date
display(ee.Date(datetime.now()).format())
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-10-30 UTC。
[null,null,["最終更新日 2025-10-30 UTC。"],[],["The `ee.Date` function creates a new Date object, accepting various inputs: milliseconds since the epoch, ISO date strings, JavaScript Dates, or ComputedObjects. It can use numeric inputs, interpreted as milliseconds, or date strings following ISO 8601 format. An optional timezone argument (string) can be provided with string date input to specify the timezone. The function returns a Date object and examples in JavaScript and Python are provided.\n"]]