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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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"]]