EntityType: Time (ProjectData service)
In this article
Definition
Parent element
Child elements
Contains the properties that define the reporting data for the time entity in the ProjectData service.
Example
The following REST query uses the TimeSet entity set and the TimeByDay key to get the time entities for the specified time range in ProjectData. The query is all on one line.
https://<pwa_url>/_api/ProjectData/TimeSet
?$filter=TimeByDay ge datetime'2014-01-01'
and TimeByDay le datetime'2014-06-30'
Definition
<EntityType Name="Time">
<Key>
<PropertyRef Name="TimeByDay" />
</Key>
<Property Name="TimeByDay" Type="Edm.DateTime" Nullable="false" />
. . .
</EntityType>
Parent element
Element |
Description |
---|---|
The schema for the reporting data in the ProjectData service. |
Child elements
Child elements are properties of the time entity type. Attributes of the Property elements specify the property name and type, and whether the property can be a null value. Unlike most entity types, there are no NavigationProperty child elements for the Time entity type.
The Key element specifies the property that is the primary key for a time query. TimeByDay is a day along the timeline.
Property elements
The following table lists the Property elements for the Time entity. The Name, Type, and Nullable columns contain attribute values for each property.
Attribute values for the Property elements of Time
Name |
Type |
Nullable |
Description |
---|---|---|---|
FiscalPeriodName |
Edm.String |
true |
The name of the fiscal period. |
FiscalQuarter |
Edm.Int32 |
true |
A fiscal quarterly time hierarchy in timephased data. |
TimeByDay |
Edm.DateTime |
false |
Key |
TimeDayOfTheMonth |
Edm.Byte |
false |
The value that represents the day within the month (1–31). |
TimeDayOfTheWeek |
Edm.Byte |
false |
The value that represents the day within the week (1–7). |
TimeMonthOfTheYear |
Edm.Byte |
false |
The value that represents the month within the year (1–12). |
TimeQuarter |
Edm.Byte |
false |
The value that represents the calendar quarter within the year (1–4). |
TimeWeekOfTheYear |
Edm.Byte |
false |
The value that represents the week within the year (1–52). |
NavigationProperty elements
There are no NavigationProperty child elements for the Time entity type.