Skip to content

How to construct clock_time_point class objects from two internal numbers (lower and upper)? #365

Description

@eitsupi

I would like to implement interconversion with the clock_time_point class in the polars package. (clock -> polars is here pola-rs/r-polars#861)

Polars holds the datetime as an Int64 type, so I am thinking that the conversion to clock_time_point needs to be converted to two UInt64 types in Rust and then passed to two double in R.

I am wondering if there is a way to create an clock_time_point class object from two R's double.

I am not familiar with the vctrs package and C++, so do not fully understand how the clock_time_point class is constructed.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions