Enums | |
---|---|
fromBody |
अनुरोध के मुख्य हिस्से में दी गई वैल्यू को modifiedDate पर सेट करें. अगर कोई वैल्यू नहीं दी गई हो, तो कोई बदलाव नहीं. |
fromBodyIfNeeded |
अपडेट के अन्य कॉन्टेंट के हिसाब से, अनुरोध के कोड में modifiedDate सेट करें. |
fromBodyOrNow |
अगर अनुरोध न किया गया हो, तो अनुरोध के मुख्य हिस्से में दी गई वैल्यू में बदलाव करें या उसे मौजूदा समय पर सेट करें. |
noChange |
modifiedDate की पिछली वैल्यू बनाए रखें. |
now |
modifiedDate को मौजूदा समय पर सेट करें. |
nowIfNeeded |
अपडेट की सामग्री के आधार पर modifiedDate को मौजूदा समय पर सेट करें. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-04 (UTC) को अपडेट किया गया."],[[["`modifiedDate` can be updated using various strategies, including values from the request body, the current time, or maintaining the existing value."],["Enums such as `fromBody`, `fromBodyOrNow`, and `now` offer direct control over `modifiedDate` updates."],["Conditional updates to `modifiedDate` are possible with enums like `fromBodyIfNeeded` and `nowIfNeeded`, depending on other request data."],["`noChange` enum preserves the original `modifiedDate` value, preventing any modifications."]]],["The content defines enums for managing a `modifiedDate` field. `fromBody` uses the request body's value, if present. `fromBodyIfNeeded` conditionally uses the body's value. `fromBodyOrNow` uses the body's value or the current time. `noChange` preserves the existing date. `now` sets the date to the current time. `nowIfNeeded` conditionally sets the date to the current time based on update contents.\n"]]