Skip to content

ntptime time offset limited to whole hours #49

@clach04

Description

@clach04

def time(hrs_offset=0): # Local time offset in hrs relative to UTC

Uses hours (rather than minutes of seconds). I suspect the math later could cause odd behaviors with timezones that are not whole hours (for example India has a half hour, one of the more simple partial hours examples).

Accepting minutes or seconds is likely a more robust solution than float to int conversion.

This is mostly a note to myself, I do not yet need to support MicroPython any when than my home at the moment (which is a whole hour offset :-))

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