Namespaces | Enumerations | Functions
datetime.hpp File Reference

DateTime column APIs. More...

#include <cudf/types.hpp>
#include <memory>

Go to the source code of this file.

Namespaces

 cudf
 cuDF interfaces
 

Enumerations

enum  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::columncudf::datetime::extract_year (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extracts year from any date time type and returns an int16_t cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::extract_month (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extracts month from any date time type and returns an int16_t cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::extract_day (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extracts day from any date time type and returns an int16_t cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::extract_weekday (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extracts day from any date time type and returns an int16_t cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::extract_hour (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extracts hour from any date time type and returns an int16_t cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::extract_minute (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extracts minute from any date time type and returns an int16_t cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::extract_second (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extracts second from any date time type and returns an int16_t cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::last_day_of_month (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Computes the last day of the month in date time type and returns a TIMESTAMP_DAYS cudf::column. More...
 
std::unique_ptr< cudf::columncudf::datetime::day_of_year (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 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::columncudf::datetime::add_calendrical_months (cudf::column_view const &timestamps, cudf::column_view const &months, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Adds or subtracts a number of months from the date time type and returns a timestamp column that is of the same type as the input timestamps column. More...
 
std::unique_ptr< cudf::columncudf::datetime::add_calendrical_months (cudf::column_view const &timestamps, cudf::scalar const &months, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Adds or subtracts a number of months from the date time type and returns a timestamp column that is of the same type as the input timestamps column. More...
 
std::unique_ptr< cudf::columncudf::datetime::is_leap_year (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Check if the year of the given date is a leap year. More...
 
std::unique_ptr< cudf::columncudf::datetime::days_in_month (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Extract the number of days in the month. More...
 
std::unique_ptr< cudf::columncudf::datetime::extract_quarter (cudf::column_view const &column, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Returns the quarter of the date. More...
 
std::unique_ptr< cudf::columncudf::datetime::ceil_datetimes (cudf::column_view const &column, rounding_frequency freq, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Round datetimes up to the nearest multiple of the given frequency. More...
 
std::unique_ptr< cudf::columncudf::datetime::floor_datetimes (cudf::column_view const &column, rounding_frequency freq, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Round datetimes down to the nearest multiple of the given frequency. More...
 
std::unique_ptr< cudf::columncudf::datetime::round_datetimes (cudf::column_view const &column, rounding_frequency freq, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Round datetimes to the nearest multiple of the given frequency. More...
 

Detailed Description

DateTime column APIs.

Definition in file datetime.hpp.