Date
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पूरी या आंशिक तारीख को दिखाता है, जैसे कि जन्मदिन. दिन का समय और टाइम ज़ोन की जानकारी कहीं और दी गई है या ज़्यादा अहम नहीं हैं. यह तारीख, ग्रेगोरियन कैलेंडर के हिसाब से है. यह इनमें से कोई एक चीज़ हो सकती है:
- पूरी तारीख, जिसमें साल, महीने, और दिन की वैल्यू शून्य के अलावा किसी अन्य वैल्यू के तौर पर शामिल हों.
- कोई महीना और दिन, जिसमें शून्य साल लिखा हो. जैसे, सालगिरह.
- अपने आप में एक वर्ष, एक शून्य महीना और एक शून्य दिन.
- साल और महीने, जिनमें दिन और समय शून्य हो. उदाहरण के लिए, क्रेडिट कार्ड की समयसीमा खत्म होने की तारीख.
मिलते-जुलते टाइप:
JSON के काेड में दिखाना |
{
"year": integer,
"month": integer,
"day": integer
} |
फ़ील्ड |
year |
integer
तारीख का साल. 1 से 9999 के बीच की संख्या होनी चाहिए, या बिना साल वाली तारीख को बताने के लिए 0 होना चाहिए.
|
month |
integer
साल का महीना. यह वैल्यू 1 से 12 के बीच होनी चाहिए. अगर किसी साल में महीना और दिन नहीं है, तो उस साल की जानकारी देने के लिए यह संख्या 0 होनी चाहिए.
|
day |
integer
महीने का दिन. इसमें 1 से 31 तक का अंतर हो सकता है. साथ ही, यह साल और महीने के लिए मान्य होना चाहिए. इसके अलावा, किसी साल के बारे में बताने के लिए, वैल्यू 0 होनी चाहिए या साल और महीने के बीच की कोई खास जानकारी नहीं होनी चाहिए.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-14 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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"]],["आखिरी बार 2024-10-14 (UTC) को अपडेट किया गया."],[[["`google.type.Date` represents a calendar date (birthday, anniversary) using the Gregorian Calendar, allowing for full dates, month/day, year only, or year/month combinations."],["It can be a full date, a month and day, a year, or a year and month."],["The JSON representation is an object with `year`, `month`, and `day` integer fields, with 0 values indicating missing components."],["`google.type.Date` is related to other types like `google.type.TimeOfDay`, `google.type.DateTime`, and `google.protobuf.Timestamp`."]]],["This schema defines a calendar date using the Gregorian Calendar, representing full dates or partial dates. Key actions include specifying a `year` (1-9999, or 0), `month` (1-12, or 0), and `day` (1-31, or 0). A zero value in `year`, `month`, or `day` indicates that the field is not relevant. The format represents full dates, month/day pairs, year-only, or year/month combinations. It is related to `TimeOfDay`, `DateTime`, and `Timestamp`.\n"]]