Reference documentation and code samples for the Google API Common Protos Client class CalendarPeriod.
A CalendarPeriod represents the abstract concept of a time period that has
a canonical start. Grammatically, "the start of the current
CalendarPeriod." All calendar times begin at midnight UTC.
Protobuf type google.type.CalendarPeriod
Namespace
Google \ Type
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
CALENDAR_PERIOD_UNSPECIFIED
Value: 0
Undefined period, raises an error.
Generated from protobuf enum CALENDAR_PERIOD_UNSPECIFIED = 0;
DAY
Value: 1
A day.
Generated from protobuf enum DAY = 1;
WEEK
Value: 2
A week. Weeks begin on Monday, following
ISO 8601.
Generated from protobuf enum WEEK = 2;
FORTNIGHT
Value: 3
A fortnight. The first calendar fortnight of the year begins at the start
of week 1 according to
ISO 8601.
Generated from protobuf enum FORTNIGHT = 3;
MONTH
Value: 4
A month.
Generated from protobuf enum MONTH = 4;
QUARTER
Value: 5
A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
year.
Generated from protobuf enum QUARTER = 5;
HALF
Value: 6
A half-year. Half-years start on dates 1-Jan and 1-Jul.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google API Common Protos Client - Class CalendarPeriod (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Type.CalendarPeriod)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Type.CalendarPeriod)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Type.CalendarPeriod)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Type.CalendarPeriod)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Type.CalendarPeriod)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Type.CalendarPeriod) \nReference documentation and code samples for the Google API Common Protos Client class CalendarPeriod.\n\nA `CalendarPeriod` represents the abstract concept of a time period that has\na canonical start. Grammatically, \"the start of the current\n`CalendarPeriod`.\" All calendar times begin at midnight UTC.\n\nProtobuf type `google.type.CalendarPeriod`\n\nNamespace\n---------\n\nGoogle \\\\ Type\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### CALENDAR_PERIOD_UNSPECIFIED\n\n Value: 0\n\nUndefined period, raises an error.\n\nGenerated from protobuf enum `CALENDAR_PERIOD_UNSPECIFIED = 0;`\n\n### DAY\n\n Value: 1\n\nA day.\n\nGenerated from protobuf enum `DAY = 1;`\n\n### WEEK\n\n Value: 2\n\nA week. Weeks begin on Monday, following\n[ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).\n\nGenerated from protobuf enum `WEEK = 2;`\n\n### FORTNIGHT\n\n Value: 3\n\nA fortnight. The first calendar fortnight of the year begins at the start\nof week 1 according to\n[ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).\n\nGenerated from protobuf enum `FORTNIGHT = 3;`\n\n### MONTH\n\n Value: 4\n\nA month.\n\nGenerated from protobuf enum `MONTH = 4;`\n\n### QUARTER\n\n Value: 5\n\nA quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each\nyear.\n\nGenerated from protobuf enum `QUARTER = 5;`\n\n### HALF\n\n Value: 6\n\nA half-year. Half-years start on dates 1-Jan and 1-Jul.\n\nGenerated from protobuf enum `HALF = 6;`\n\n### YEAR\n\n Value: 7\n\nA year.\n\nGenerated from protobuf enum `YEAR = 7;`"]]