<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <dspl targetNamespace="https://www.google.com/publicdata/dataset/google/time" xmlns="https://schemas.google.com/dspl/2010"> <info> <name> <value xml:lang="en">Google date and time</value> </name> <description> <value xml:lang="en">Google date and time dataset</value> </description> <url> <value xml:lang="en">http://code.google.com/apis/publicdata/docs/canonical/time.html</value> </url> </info> <provider> <name><value xml:lang="en">Google Inc.</value></name> <description><value xml:lang="en">Google Inc.</value></description> <url><value xml:lang="en">http://www.google.com</value></url> </provider> <concepts> <concept id="time_point"> <info> <name><value>Point in time</value></name> <description><value>Point in time, with a given granularity.</value></description> </info> <type ref="date"/> <attribute concept="granularity"/> </concept> <concept id="year" extends="time_point"> <info> <name><value xml:lang="en">Year date</value></name> <description> <value xml:lang="en"> A date with yearly granularity. The year concept is usually used directly in a slice definition to define a dimension that contains year. For example, a slice for yearly population by country would be defined as follows: <![CDATA[<slices> <slice id="country_slice"> <dimension concept="country"/> <dimension concept="time:year"/> <metric concept="population"/> <table ref="country_slice_table"/> </slice> </slices>]]> The table definition for this slice would be defined as follows: <![CDATA[<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>]]> And the data contained in the CSV file for this table would look like: country, year, population AF, 1960, 9616353 AF, 1961, 9799379 AF, 1962, 9989846 AF, 1963, 10188299 ... </value> </description> </info> <attribute id="granularity"> <value>YEARLY</value> </attribute> </concept> <concept id="quarter" extends="time_point"> <info> <name><value xml:lang="en">Quarter date</value></name> <description> <value xml:lang="en"> A date with quarterly granularity. See the example for the year concept above. </value> </description> </info> <attribute id="granularity"> <value>QUARTERLY</value> </attribute> </concept> <concept id="month" extends="time_point"> <info> <name> <value xml:lang="en">Month date</value></name> <description> <value xml:lang="en"> A date with monthly granularity. See the example for the year concept above. </value> </description> </info> <attribute id="granularity"> <value>MONTHLY</value> </attribute> </concept> <concept id="week" extends="time_point"> <info> <name><value xml:lang="en">Week date</value></name> <description> <value xml:lang="en"> A date with weekly granularity. See the example for the year concept above. </value> </description> </info> <attribute id="granularity"> <value>WEEKLY</value> </attribute> </concept> <concept id="day" extends="time_point"> <info> <name><value xml:lang="en">Day date</value></name> <description> <value xml:lang="en"> A date with daily granularity. See the example for the year concept above. </value> </description> </info> <attribute id="granularity"> <value>DAILY</value> </attribute> </concept> <concept id="granularity"> <info> <name><value xml:lang="en">Granularity</value></name> <description> <value xml:lang="en"> Granularity of time, i.e., the uncertainty that a point in time may be anywhere within some time interval. </value> </description> </info> <type ref="string"/> <table ref="granularity_table"/> </concept> </concepts> <tables> <table id="granularity_table"> <column id="granularity" type="string" /> <data> <file format="csv" encoding="utf-8">granularity.csv</file> </data> </table> </tables> </dspl>
CARVIEW |
Select Language
HTTP/2 200
last-modified: Wed, 26 Jun 2024 16:39:22 GMT
content-type: text/html; charset=utf-8
vary: Cookie
vary: Accept-Encoding
content-security-policy: base-uri 'self'; object-src 'none'; script-src 'strict-dynamic' 'unsafe-inline' https: http: 'nonce-H1dV0mm1yLWo7s/WGGGFqfyofKS7Ez' 'unsafe-eval'; frame-ancestors 'self' https://code-assist-free-tier-autopush.corp.google.com https://code-assist-free-tier-staging.corp.google.com https://code-assist-free-tier.corp.google.com https://*.proxy.googlers.com; report-uri https://csp.withgoogle.com/csp/devsite/v2
strict-transport-security: max-age=63072000; includeSubdomains; preload
x-xss-protection: 0
x-content-type-options: nosniff
cache-control: no-cache, must-revalidate
expires: 0
pragma: no-cache
content-encoding: gzip
x-cloud-trace-context: e87e80759c93db0f6b581afa447bd623
date: Thu, 17 Jul 2025 19:43:21 GMT
server: Google Frontend
content-length: 16737
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
time.xml | Dataset Publishing Language | Google for Developers
Skip to main content
time.xml
time.xml
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["This dataset provides Google date and time data with varying granularities."],["It includes concepts like year, quarter, month, week, and day, each with specific granularity levels."],["The dataset is structured in an XML format, defining concepts and tables for data organization."],["Granularity specifies the level of time precision, indicating the potential range within a time interval."],["Data examples are presented in CSV format, illustrating the structure and content of the dataset."]]],["This document defines the \"Google date and time\" dataset, detailing time-related concepts and their granularities. Core concepts include `time_point`, `year`, `quarter`, `month`, `week`, `day`, and `granularity`. Each time concept extends `time_point` and specifies its granularity (e.g., `YEARLY`, `QUARTERLY`). The `year` concept demonstrates how to define a slice for yearly data and how related data is formatted within CSV files, like a country's population per year. A table is defined to map granularities.\n"]]