|Metropolis Documentation 4.3 > Platform Concepts > Working with Time Series Data > Intraday Data|
Intraday workflows are workflows involving data that rely on time periods of less than a day. Palantir supports intraday workflows via options in the Date/Time Controls panel on the ribbon, the Date Set UI, and metrics that convert objects between daily and intraday frequencies.
Value-on time is an analagous concept to value-on date used in intraday computations. The value-on time can be found by using the new now() metric. Both value-on date and value-on time are controlled in the Date/Time Controls, a new ribbon tab found in most tools.
If the Specify Time box is not checked, computations that require the value-on time will use 0:00:00/UTC.
Date sets which contain intraday time periods such as hours, minutes, or seconds, now treat these periods of time as ranges containing an infinite number of instantaneous time points (which we will refer to as instants).
For example, open Date Set. Start with all dates. Add a recurring filter for June 16th, the first hour of the day, and restrict to the last year. This creates a date set representing the hour from 0:00 to 1:00 on June 16th. The date set should be thought of containing all instants of time between 0:00 and 1:00. Note that 0:00 is included in the interval, but 1:00 is not.
The advantage of this implementation is that it does away with the notion of hours / minutes / seconds as distinct units, and instead simply considers them as differently-sized ranges of instants.
It is also possible to create date sets with finite numbers of instants, such as the first instant of every hour. You can create date sets like this by adjusting the Sample option in the Recurring filter.
|Because infinite instants don’t really exist, the system considers a millisecond an instant. This can cause issues if you try to work at the millisecond level. In particular, do not work with time series that have ticks at consecutive milliseconds. You will run into unexpected errors.|
You can convert dates, date sets, and time series between daily / intraday versions by using the proper version of the new metrics toDaily() and toIntraday().
Additionally, there is a withTime() metric that operates on Dates. When given a daily date, its behavior is identical to toIntraday(). When given an intraday date, it will replace the time values (time zone, hours, minutes, seconds, milliseconds) with those specified in the parameters.