Skip to content

generic add/subtract methods? #667

@laventnc

Description

@laventnc

Given that we already have (add/subtract)Days, Weeks, etc. functions for every available Unit, is there a reason we don't define a generic add/subtract function that allows the called to pass in the unit dynamically?

add( value: TDate, unit: Unit, count: number )
subtract( value: TDate, unit: Unit, count: number )

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