Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
时间
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面记录了时间规范概念数据集。通过
完整的 XML 文件也可供审核。
基本信息
提供商
导入的命名空间
未导入任何命名空间。
主题
未定义任何主题。
概念
概念:time_point
| 时间点 [XML] |
| 时间点 |
| date |
| 具有指定粒度的时间点。 |
|
|
| 没有本地房源。 |
概念:年份
| 年份 [XML] |
| 年份日期 |
| time_point |
按年细分的日期。年份概念通常直接用于
来定义包含年份的维度。对于
例如,按国家/地区划分年度人口的切片定义为
如下:
<slices>
<slice id="country_slice">
<dimension concept="country"/>
<dimension concept="time:year"/>
<metric concept="population"/>
<table ref="country_slice_table"/>
</slice>
</slices>
此切片的表定义定义如下:
<tables>
...
<table id="country_slice_table">
<column id="country" type="text"/>
<column id="year" type="date" format="yyyy"/>
<column id="population" type="integer"/>
<data>
<file format="csv" encoding="utf-8">country_slice.csv</file>
</data>
</table>
...
</tables>
而此表的 CSV 文件中包含的数据将如下所示:
country, year, population
AF, 1960, 9616353
AF, 1961, 9799379
AF, 1962, 9989846
AF, 1963, 10188299
...
|
|
|
| 没有本地房源。 |
概念:季度
概念:月
概念:周
概念:日期
概念:粒度
切片
未定义任何切片。
表
表:grading_table
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-02-18。
[null,null,["最后更新时间 (UTC):2026-02-18。"],[],["This document details the \"time\" canonical concept dataset from Google, available in XML format. It defines the core concept of `time_point` and specifies time granularities: `year`, `quarter`, `month`, `week`, and `day`. Each time concept extends `time_point` and has a granularity attribute (YEARLY, QUARTERLY, MONTHLY, WEEKLY, DAILY). It provides an example of how to define a slice with the year concept and references the granularity table, which defines the uncertainty of a point in time. The dataset is provided by Google.\n"]]