Skip to content

as and wrap  #1

@anderic1

Description

@anderic1

Hi
I think it would be useful to have as and wrap functionality for at least some of the date time types present in date.h and their R-equivalents.
One mapping could be :

  • sys_time<Duration> <=> POSIXct, at least for Durations between seconds and microseconds
    • with specializations for sys_days (aka sys_time<days>) <=> Date
    • and even perhaps sys_time<nanoseconds> <=> nanotime

This maps well with R's implementation, ie days/seconds/nanoseconds since 1970-01-01 00:00 UTC.

I do not if this is already planned, but I have a first draft in my fork. Let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions