Skip to content

Request: Initialise clock to number of seconds past the hour #4

@abradner

Description

@abradner

I'm happy to write this and submit a PR, but I want to know if it's a) in scope and b) wanted before I write it.

Basically, the use case is having Clock's hour/quarter/five/minute methods tick at the same time (or close enough) to wall clock time, so properties that should update on the hour/minute/etc can just observe clock.method instead of doing some other tricky things

The easiest way I can see to do that is to set the initial value to be seconds past the hour or seconds past midnight.

Would this be valuable?

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