Skip to content

Use a different representation for Duration #16466

Closed
@brson

Description

@brson

The Duration type introduced in #15934 looks like

pub struct Duration {                 
    days: i32,                                                                
    secs: u32,  // Always < SECS_PER_DAY                                     
    nanos: u32, // Always < NANOS_PR_SECOND                                                   
}

Per @kballard's [comment] this could be

pub struct Duration {                                                                 
    secs: i64,       
    nanos: u32, // Always < NANOS_PR_SECOND                                                   
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions