DateTime column APIs. More...
#include <cudf/types.hpp>#include <cudf/utilities/default_stream.hpp>#include <cudf/utilities/export.hpp>#include <cudf/utilities/memory_resource.hpp>#include <cuda/stream>#include <memory>Go to the source code of this file.
Namespaces | |
| cudf | |
| cuDF interfaces | |
Enumerations | |
| enum class | cudf::datetime::datetime_component : uint8_t { YEAR , MONTH , DAY , WEEKDAY , HOUR , MINUTE , SECOND , MILLISECOND , MICROSECOND , NANOSECOND } |
| Types of datetime components that may be extracted. | |
| enum class | cudf::datetime::rounding_frequency : int32_t { DAY , HOUR , MINUTE , SECOND , MILLISECOND , MICROSECOND , NANOSECOND } |
| Fixed frequencies supported by datetime rounding functions ceil, floor, round. | |
Functions | |
| std::unique_ptr< cudf::column > | cudf::datetime::extract_datetime_component (cudf::column_view const &column, datetime_component component, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Extracts the specified datetime component from any datetime type and returns an int16_t cudf::column. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::last_day_of_month (cudf::column_view const &column, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Computes the last day of the month in datetime type and returns a TIMESTAMP_DAYS cudf::column. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::day_of_year (cudf::column_view const &column, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Computes the day number since the start of the year from the datetime and returns an int16_t cudf::column. The value is between [1, {365-366}]. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::add_calendrical_months (cudf::column_view const ×tamps, cudf::column_view const &months, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
Adds or subtracts a number of months from the datetime type and returns a timestamp column that is of the same type as the input timestamps column. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::add_calendrical_months (cudf::column_view const ×tamps, cudf::scalar const &months, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
Adds or subtracts a number of months from the datetime type and returns a timestamp column that is of the same type as the input timestamps column. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::is_leap_year (cudf::column_view const &column, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Check if the year of the given date is a leap year. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::days_in_month (cudf::column_view const &column, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Extract the number of days in the month. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::extract_quarter (cudf::column_view const &column, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Returns the quarter of the date. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::ceil_datetimes (cudf::column_view const &column, rounding_frequency freq, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Round datetimes up to the nearest multiple of the given frequency. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::floor_datetimes (cudf::column_view const &column, rounding_frequency freq, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Round datetimes down to the nearest multiple of the given frequency. More... | |
| std::unique_ptr< cudf::column > | cudf::datetime::round_datetimes (cudf::column_view const &column, rounding_frequency freq, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Round datetimes to the nearest multiple of the given frequency. More... | |
DateTime column APIs.
Definition in file datetime.hpp.