Skip to content

Feature request (low): adding a "now" keyword for @time_trigger #139

Closed
@wsw70

Description

@wsw70

In the same vein as to noon or midnight, it would be great to have a now entry that would simplify the use of @time_trigger.

A typical case is would be @time_trigger("period(now, 1m)") or @time_trigger("period(now+1h, 1m)"). This would help to avoid fiddling with datetime.

I had a look at the code (

elif dt_str.startswith("midnight"):
) with the hope to make a PR but I exclusively use arrow (alternatives are pendulum, or delorean) because I never could get the time / date right (this is for me one of the most messed up parts in Python)

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