Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Asynchronicznie pobiera wartość tego obiektu z serwera i przekazuje ją do podanej funkcji wywołania zwrotnego.
Wykorzystanie
Zwroty
Date.evaluate(callback)
Argument
Typ
Szczegóły
to: computedobject
ComputedObject
Instancja ComputedObject.
callback
Funkcja
Funkcja w formacie function(success, failure), wywoływana, gdy serwer zwraca odpowiedź. Jeśli żądanie się powiodło, argument success zawiera oceniony wynik. Jeśli żądanie się nie powiedzie, argument failure będzie zawierać komunikat o błędzie.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["`Date.evaluate()` retrieves the value of a server-side `ee.Date` object and passes it to a callback function."],["The callback function receives the evaluated result as an object with `type` and `value` keys, where `value` represents milliseconds since the Unix epoch."],["Excessive use of `evaluate` can impact performance due to data transfer from Earth Engine servers to the client."],["The Python client library uses `getInfo()` instead of `evaluate` for asynchronous evaluation of `ee.Date` objects."]]],["The `Date.evaluate(callback)` method asynchronously retrieves a ComputedObject's value from the server. It uses a callback function with `success` and `failure` arguments to handle the server's response. If successful, `success` provides the evaluated result; otherwise, `failure` gives an error message. The JavaScript example transfers a server-side date to the client, revealing its \"type\" and \"value\" (milliseconds since Unix epoch). Python uses `ee.Date.getInfo()` for similar functionality.\n"]]